Category "android"

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

exception: View does not have a navController set

in the fragment which i made it host in the tag fragment in activity when i use navController = Navigation.findNAvController(view) the app crashes by the error:

android gradle fail "AAPT: error: resource color/com_facebook_button_background_color_focused_disabled"

when I am running build at Android Studio, there are linking failed from the out of project where is in ".gradle/caches/transforms-2/files-2.1/". I erased .gr

How to reduce material.switchmaterial.SwitchMaterial end margin in android?

I've used "com.google.android.material.switchmaterial.SwitchMaterial" in that left margin having some space. How to reduce that? I've need align straight of the

apex image failed to build android rom compiling

I'm trying to build crdroid 10 for my z5p I followed the guide given on GitHub and set my environment synced the files and after hours of building, I'm facing e