Category "android"

Scope a viewmodel between 2 fragments with koin 2.2.3 and jetpack navigation

My project is on Koin 2.2.3 and I search to scope a viewModel in function of a graph. In my ViewModelModule I got this: val Int.navQualifier: Qualifier get() =

Set color of TextView span in Android

Is it possible to set the color of just span of text in a TextView? I would like to do something similar to the Twitter app, in which a part of the text is blu

How to use `ImageRequest.Builder.target` in the new coil version in jetpack compose?

My Gradle // Coil implementation "io.coil-kt:coil-compose:1.4.0" Problem Description Previously I used the coil together with Google's accompanist, but when I

Deprecated "getBitmap" with API 29. Any alternative codes?

My onActivityResult is not working because getBitmap is deprecated, any alternative codes to achieve this? here are the codes that needs to be changed, any sug

Jetpack compose : BottomSheet state change callback

How can i achieve callback/listener mechanism on JetPack Compose BottomSheet state changes? Something similar to: @Override public void onStateChanged(@

How to customize a Spinner in Android

I want to add a custom height to the dropdown of a Spinner, say 30dp, and I want to hide the dividers of the dropdown list of Spinner. So far I tried to implem

How to use crontab in Android?

I can't find answer to my question: Is it possible to run crontab to reboot Android using busybox (or other means) Tried to run crontab, and it complain about

How to create an ArrayList that is accessible by different classes in android? [duplicate]

I got a CameraView class (with an onPreviewFrame) which on each incoming frame calculates a value of 1 or 0 depends on the frame brightness, I

How to make adb tap fast (ADB+Python)

So I made a bot for a singleplayer android game, using python and adb. The biggest problem is that between each tap there is like a 1 second delay. I connect to

How to set up Firebase Push Notification with Deep Link with Unity3D

I am implementing Firebase Cloud Messaging to send Push Notifications to my Unity Project for Android and iOS Devices. I am now Debugging with Android. I receiv

Android Studio-- Cause: error=86, Bad CPU type in executable

Android Studio throws an error while building the project. the error is : Cause: error=86, Bad CPU type in executable. The detail error: Bad CPU

How to get Current Active Google play account in Android

I can able to get all the configured gmails using below code snippet Account[] accounts = AccountManager.get(this).getAccounts(); for (Account account : acco

Change app language programmatically in Android

Is it possible to change the language of an app programmatically while still using Android resources? If not, is it possible to request a resource in an specif

How to use use Firestore document field's HashMap key value and populate recyclerview?

I have just started learning android. I want to know is a way by which I can populate a RecyclerView using a firebase document's field which contains only the H

React-Native-Maps not showing on Android Emulator or real device

I added react-native-maps in my project and it doesn't showup I am not able to figure out what I'm doing wrong Things I have tried: Test the example app availab

How to see who already downloaded our app in play console closed testing?

I want to monitor internal testers who have or have not downloaded the app. is there a feature in play console?

How to know which Marker was clicked on Google Maps v2 for Android?

I am making an application with a Google Maps on it, for Android. I have plenty of Markers on my screen and I am preparing customizable balloon for each marker

How to get app install time from android

i try some method,but not success,help me.

How to change Floating Action button shadow colour

I want to change Floating Action button shadow colour from black/grey to colorprimary/custom color of shadow ** shadow example like below image with **center bl

Gradle ignores testProguardFile when running Android instrumentation

I'm trying to run instrumentation tests on a release build type. My setup is as follows: Android Studio - 3.4.1 Android Gradle Plugin - 3.4.1 Gragle - 5.4.1 R8