Category "android"

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

For example, I need it to run as long as the values in the table day = Value 1 and in the table gender = boy

How to force execution in a "While" loop until it reaches a certain value in the database table. For example, I need it to run as long as the values in the tabl

How to programmatically uncheck a checkbox in Kotlin

I've got two checkboxes and I need to uncheck the other checkbox if the first checkbox was clicked. Right now if a user clicks on the second checkbox and then o

Flutter image_picker crashes when opening camera

I'm trying to use image_picker on Flutter and it works perfectly on Android emulator. But when I try to use it on my real device, it crashes when I clicking the

How to hide the default android webview progress bar?

i work on an app that displays a page through a webview. I have implemented my own progress bar and it works fine. However i cannot get rid of the default andro

Return fingerprint and save in firebase

I am trying to write an app using flutter or android studio. The user will login to the app using his fingerprint. I want to read the fingerprint and save it in

Override done button functionality inappbrowser

Is it possible to override done button functionality? i need to just hide inappbrowser on done button as when show same the last visit url next time.

BATTERY_OPTIMIZATIONS not working even After Granting Permission from BATTERY_OPTIMIZATIONS Dialog in some Vivo,Oppo Devices

This is my Code:- AndroidManifest.xml <uses-permission-sdk-23 android:name="android.permission.REQUEST_IGNORE_BATTERY_OPTIMIZATIONS"/> Java side: if

How do i add registered username in android application to SMS?

I'm currently developing a GPS Live Tracking Android Application. So the function of the application is to send a SMS to the admin mobile number using the regis

Install APK by programmatically Xamarin.Forms (Android)

So far my code looks like this: 1. Dowload the APK file and save it into internal storege: Using DependencyServices App.xaml.cs IDownloader downloader = Dep