Category "android"

HiltViewModel: Cannot create an instance of class

I am using Hilt. After updating to 1.0.0-alpha03 I got warnings that @ViewModelInject is deprecated and I should use @HiltViewModel. But when I change it I got

Fatal Android 12: Exception: startForegroundService() not allowed due to mAllowStartForeground false

I noticed one exception (Firebase Crashlytics) for Pixel 5 and Pixel 4a (both on Android 12), no other devices, happened only two times, one time for each devic

How to make RecyclerView be always up to BottomSheet and under AppBarLayout?

I have a layout with AppBarLayout which height is set dynamically by adding some margins if the device has the notch, BottomSheetLayout and a RecyclerView. The

How to enable File Upload in a WebView

I'm running a WebView on Android app and now I have discovered that I have a problem when I added a new feature to my website which is to upload a profile image

Flutter WebView doesn't call onPageFinished on iOS

I'm working with webview_flutter in order to Auth my users through Cognito's auth endpoint. This is my WebView: return WebView( initialUrl: url,

Google play can not release app because of verification but there is no problem?

When I come to final step to release app google play console gave me this error You cannot publish applications until you complete ID verification. More details

React Native android FormData response goes to catch block after .json()

I'm trying to POST data with FormData to get a response, on iOS it works as expected, but on android, it always goes to the catch block, I found out the reason

Custom view custom attribute not being set without @{}

So I've got a custom view with this attribute: private var mLabelText: String = "DEFAULT" var labelText: String set(value) { if (mLa

Android Studio Chipmunk Logcat auto selects "Scroll to the end. Clicking on particular line will stops scrolling" when changing process view

My application crashes for some reason. And then another instance is raised. But I want to view the crash logs in Logcat. The [DEAD] proces is visible on Logcat

Firebase Auth getCurrentUser() retrieves a deleted user

Hello and thanks for your time. I've been working on an android app using Firebase. I've set up Firebase Authentication and the user can register with email a

Xamarin.Forms Android Write in External Storage SOLVED

I am a very beginner with C#, and I definitely need your help. I am trying to create/Open/Write a .txt file in the External Storage, but I can not set the path

How to fill the spinner with a custom object with coroutines and implement your onItemSelected logic related to that object?

For example, let's use this class: data class Person ( var id : Long, var name: String, var imageUrl: String ) I need to fill my spinner with name

ERROR: The GPU does not support this version of OpenGL ES, try an older version in flutter

I/Adreno (21484): ERROR: The GPU does not support this version of OpenGL ES, try an older version D/skia (21484): Shader compilation error D/skia

New line \n in Spanned from JSON block not displaying

In Android, I'm trying to take a string from a JSON response and display it on the screen. The text may contain HTML tags, links etc so I use Spanned and it ren

How to add existing fragment from inside Compose

I want to open an existing fragment from compose or if i can add inside the same compose in full screen, that will also work. Also how to navigate from one exis

Access denied finding property "ro.vendor.df.effect.conflict"

Hi i am doing audio recording its throwing me an error. i am not able to figure it out can some one help me. 2021-01-24 19:21:53.708 4661-4661/com.koteswara.med

Clicking on item of Navigation Drawer doesn’t open fragments

I want to use the default Navigation Drawer Activity of Android Studio (v. 3.5). After creating this default activity (New Project --> Navigation Drawer Acti

How to make two CardView height as wrap_content in a linear layout

I have two MaterialCardView in a linear or relative layout (i don't care about the parent layout I only want the result) I want that both of the MaterialCardVie

Button Long Press Listener in Android jetpack compose

I am having an Android Composable UI with a Button. How can I track button long press events? I got it working for the Text long press, but for Button, It is no

How to reverse View Binding from custom tab layout in Android?

I made a custom tab item for my tab layout and initialized it using view binding as follows: val tabView = CustomTabBinding.inflate(LayoutInflater.from(mContext