Category "android"

How to put ImageView on top of CardView in ConstraintLayout

I want to create a layout like this, but I don't know how to place the CardView background under the ImageView and then set TextView below the image. The image

How to install any Android app programmatically in Android 10

In Android 9 & 10 I face issued in install app programmatically in Android Studio using filepath apk file. Below show what I tried.. Intent intent = new I

Completable.create of RXJava equivalent in Kotlin Coroutines- Android

I am working on Firebase authentication wherein I need to put the firebase auth on my Repository. I found this article on how to do it but it uses RxJava. (http

Android CheckBox gets filled in with solid color when setting button attribute

rather simple situation. I have a checkbox, I set the button attribute to my selector with two drawables for checked and unchecked. It looks proper in the edito

Android Studio cannot find my device ! (Initializing ADB)

I'm struggling to connect my device(Galaxy S10) in Android Studio. I used several methods to solve this problem, but it didn't work. [Methods that I tried] -

Unity Build - Exception: il2cpp.exe did not run properly

Using Unity 2017.4.34f1 (LTS) with IL2CPP with NDK r13b, I try to export my Unity Project to Android Project (Build Process). Note: I'm using IL2CPP because Goo

Is it possible to use the same api-key for all users of your app? Is it good to do?

I am creating a stock market simulator in flutter, which gets data from the fmp api. Can you use the same api key for all users or do I need to create a databas

Dynamic instruction trace for Android Apps

I want to generate the dynamic instruction trace of Android Apps (Just like for a basic hello world C program, I am able to generate the instruction trace using

Duplicate class com.google.android.a.a found in modules?

I tried adding Installreferrer to my app after adding it to gradle, when rebuilding the app. I'm getting this error. Duplicate class com.google.android.a.a foun

Android Kotlin: onTextChanged not being triggered for EditText

I am creating an EditText box with line numbers on the side. To achieve this, I have code in the onTextChanged method of the addTextChangedListener that updates

Display elements in the same place for all devices

I'm trying move items bottom middle, and I want that it was on bottom middle for all devices. And I need add text above and under my imagviews on middel. Sorry

Android activity loses data when switching between apps

I'm writing my first Android app. Essentially it shows and controls the score of a straight pool match. I've read articles about the lifecycle of an activity bu

How to open Accessibility Settings of my app programmatically?

As mentioned here I can open Android Accessibility Settings page; I know I can open my app Accessibility Settings directly with this code: Intent intent = new

Why in Flutter, PlatformView cannot shrink to its own size?

For example: child: Row( children: [ const Expanded(child: AndroidNativeView()), ElevatedButton( child: const Text("PLUS")) ], ) In layouts

How ViewModel is not get destroyed when activity is rotated

I am curious to know how a ViewModel survives when Activity gets rotated because of that it destroyed and recreated again. Logically If we see then ViewModel ge

Gradle Building Error while outputting the program

I am facing an issue when I am Using Gradle to output my Android APP in Android Studio, I am getting such error, the error was there in sync, then I tried to sy

vs2019 - Xamarin: loses path settings of "Java Development Kit Location"

I do a very simple thing. I go to Tools -> Options -> Xamarin> Android Settings and I change the "Java Development Kit Location" path. I press ok. I co

How can I change the corner radius of Material Components Dialog (M3) in Android

See the pic at here I'm using MDC(3) for my project as first time and everything is going well until I see the dialog. What is wrong with that? According per do

Google Play Console Play App Signing - The Android App Bundle was not signed

I am trying to create a playstore release. I've followed the guide to create an upload key and keystore, to the letter: https://developer.android.com/studio/pub

flutter arabic justified alignment not working

I'm developing a quran app with flutter and i've done most of the work. but when it comes to the proper alignment it doesn't work. output image is here I'm doin