Category "android"

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

LazyList memory leak in Jetpack Compose

I found out that LazyList generates memory leaks. When I scroll down to the bottom of the list memory usage by my app increases by ~3MB. After I scroll up and u

Dagger hilt predefined components for non android scopes

I have the following module that is used in the data layer of my application which is a plain Android Library. @Module interface MapperModule { @Binds f

Is "@Keep support annotation" rule in proguard-android-optimize.txt still applicable when using AndroidX?

It is common to apply proguard-android-optimize.txt as proguard file. proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-project.

Error on Unity Android Build - Deprecated Gradle features were used in this build, making it incompatible with Gradle 6.0

This question have been asked before but I am looking for solution for Unity platform. I tried to export project , had it opened on Android Studio but Gradle sy

cannot add navigation dependency

I am trying to Add Navigation in my project but its showing failed to add Navigation dependency, when i click on 'ok' in the window to add these now , its showi

Jetpack compose - how do I refresh a screen when app returns to foreground

I need to automatically refresh an Android Compose screen when the app returns to the foreground. I have an that requires permissions and location services. If

Meaning of open testing in playstore

I recently published an application to production mode on the play-store, the app status has changed from review to open testing, what does this mean? Might I h