Category "android"

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

Android autofill enters the same info multiple times, when reusing layout

I have a fragment in which I reuse the same layout multiple times. The layout has two EditText fields, one for name and one for email. In other words the view l

Kotlin for a new application for stock management?

I am searching a new language/framework for a v2 of a old app we have in my company, for stock management, and I was wondering if Kotlin could do the work. Basi

Smoothly animate BottomSheet peek height

I'm trying to animate the height of the BottomSheet on layoutChange, but I can't get anything to work. I've tried several tutorials without luck. Currently the

Expo splashScreen not changing

So I'm building an app apk file with expo, and I'm pointing to my splashscreen images on app.json. { "expo": { "name": "D&D Monster Reference",

Is there any way to stretch layout when device has cutout (notch)?

I'm making my project able to handle notch/cutout because users can see big black rectangle area when in landscape mode. Since my app's layout will be safe afte

How do I prevent Intent.createChooser from using the Intent automatically if there is only one intent?

I'm trying to create an Intent Chooser for editing a "Profile Picture", with the following options: 1. Camera 2. Gallery 3. Delete Image Based on the permissio