Category "android-studio"

Combining Two Flows and add them to temporary list of StateFlow(Hot Flows)

I m getting data from two End points using flows and assigning those two list to temporary list in ViewModel. For this purpose, I'm using combine function and r

I am using viewpager2 inside a recyclerview but the images are not outputting. Why?

No matter what I do the pictures are not showing up. Even if I set the items to match parent, I still have the same problem, I've been dealing with it since the

Is there a way of displaying 2 input for QR code in android

So I’m creating an android app for queuing and it uses a QR code for reference and when scanned should display date and time of the chosen schedule but my

How to separate large numbers with spaces kotlin

I have a calculator app and I want it to show large numbers with spaces between them when users enter their input. Currently, they don't have spaces between the

Failed to start several time. Restore it by clearing its history. Android Project

I have no idea what causing the error in my android project. The error "Failed to start several time. Restore it by clearing its history." happen in some of the

Firebase Assistant missing in Android studio's Tools tab

So I'm building an application with android studio and I am having problems connecting to Firebase. This means that Firebase assistant is not in Tools. Now, a

Connection of Android Studio project to MySQL database

I am developing an android studio project and would like to be able to access data from a database sitting on the pc which I am programming from. I would like t

i get "Error running 'main.dart': Entrypoint isn't within a Flutter pub root" every time i try to run my app

i'm working on app using flutter and android studio this is the error I get every time i try to run my app i tired running other projects and they ran completel

Can't see implementation of protected abstract functions in Android package

I have been going over the android package a bit. I am using sdk 30 and for example in SensorManager.java there is a function protected abstract List<Sensor&

textview icon instead of real text

In the preview window of Android Studio sometimes instead of actual text (a few lines of text) I see the TextView icon as in the picture. I tested various layou

How do I assign an id to a drawable in text view in the xml file?

How do I assign an id to a drawable in text view in the xml file. The three dots is the drawable. So I can find it by id. findViewById<??????>(R.id.id_of

Range Error(index): invalid value: valid value range is empty

im trying to set initial value for 'title' but it keeps showing me the error: range error (index): invalid value: valid value range is empty class _ProductCreat

Android studio custom icon state_focused not working

custom_email_icon.xml <?xml version="1.0" encoding="utf-8"?> <selector xmlns:android="http://schemas.android.com/apk/res/android"> <item andr

How to update Rcyclerview after removing an Item from shared preferences

I have a few recyclerview in different activities and all of their items specified by sharedpreferences but after removing an item from sharedpreferences the re

Gradle sync failed: Plugin [id: 'com.android.application', version: '7.1.2', apply: false] was not found in any of the following sources:

I have upgraded my Android Studio and after that I'm facing this error: Gradle sync failed: Plugin [id: 'com.android.application', version: '7.1.2', apply: fals

File pattern was reassigned to file type by 'Android' plugin. You can confirm or revert reassigning pattern

I am developing an app using Flutter 2.10.3 but I assume this issue is not related to Flutter. Since upgrading to Android Studio Bumblebee | 2021.1.1 Patch 2 I

Jetpack Nav-Graph navigation to current fragment itself also having it in stack

Fragment Structure Fragment Stack I want so that on back press I load fragment with my old data state A->B->C->C Fragment Stack, nav graph created even

Android Studio Bumblebee can't detect androidx package

I was using components from androidx package in a project. After upgrading my Android Studio from Arctic Fox to Bumblebee, the androidx components are not detec

Flutter style code editing short cuts for jetpack compose?

I´m a little spoiled by these code editing shortcuts Flutter plugins provide (See example screenshot). Does somethings similar exist for Jetpack Compose?

Getting error while running command "flutter build --release"

The android studio builds the apk perfectly with the following command : "flutter build apk" but is throwing error when I try to run "flutter build apk --releas