Category "android"

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

Android gamepad app to dispatchKeyEvent to another app (game)

I am developing a game controller app for a school project that displays a virtual gamepad and is aimed at controlling any game app on Android. Of course, the g

Dagger2 dependent-component vs subcomponent

What's the difference between Subcomponents and Dependent-Components with specific scope in action? What's pros or cons of every one? My Story: Recently I deci

Android Java - how to clear repeat drawings?

I have this code where I draw on a canvas then convert to a bitmap. predictBtn.setOnClickListener(new View.OnClickListener() { @Override

Android Studio : The application could not be installed: SHELL_UNRESPONSIVE

i'm trying to install my app debug from my android studio. it's work well yesterday, but today when i try to install it again, the application cant be installed