Category "android"

Can I change topLevelDestinationIds from AppBarConfiguration?

I have CountriesFragment and this fragment is launching first (start destination) I hid the back button using this code NavigationUI.setupWithNavController(mate

Unable to Capture Fingerprint using morpho fingerprint scanner device in android application

Device detail: Morpho fingerprint scanner device Method Type : CAPTURE URL : http://127.0.0.1:11100/capture Headers content-type : text/xml Accept : text/xml B

ViewPager2 default position

I'm creating a slideshow with ViewPager2. For example, the slideshow has 3 items and I want to show the second item when the activity opens. I use setCurrentIte

IntelliJ IDEA and Android Studio create ADB conflict: Could not connect to remote process

I use the latest release of IDEA (now 2021.2.2) to develop the backend (and running tests) and the latest of Android Studio (now 2020.3.1) for the mobile app. W

CountDownLatch: object not locked by thread before wait()

I want to pause the main thread until the other thread finishes. I tried CountDownLatch and semaphore. but none of them worked. I got the same error for both.

Is it possible to display watch sensor data on phone without installing app on watch

Display watch sensor data on phone without installing an app on watch? How create an app that displays all the sensor data from watch?

What's difference between "= remember" and " by remember" (Kotlin, Jetpack Compose)

I think two use case of remember exist. first one is @Composable fun abc() { var aa = remember { mutableStateOf(true) } } and second @Composable fun abc()

No MaterialLocalizations found - MyApp widgets require MaterialLocalizations to be provided by a Localizations widget ancestor

I was just trying to create an app with button which shows an alert message when the button is pressed. But it gives me this error(Mentioned below). I wrote

Koush ION crashes after Gradle upgrade

After Gradle upgrade ION gives me this error, when trying to send very simple request. It gives me same error on AVD and my physical device. For now I dodged er

Dynamic list of custom items each with edit button. How to button binding?

I tried importing ObjLargeBinding, but idk what to do from there. Do I have to dynamically setOnClickListeners for each objective on screen? ''' import android.

How to get difference of response received time and request made time

i need a difference between response recieved time - request made time.it should print the difference on the screen.for now it shows a button and if we click th

> Could not find com.google.android.exoplayer:exoplayer-core:r2.4.2

I am facing this exoplayer not found error in video android studio application after I updated my project dependencies. I don't know how to update old Exoplayer

How to resolve the error "LifecycleOwners must call register before they are STARTED"

I am using registerForActivityResult for google sign in implementation in my development. Everything was working fine until I upgraded my fragment dependency t

React Native - TypeError: n.createContext is not a function. (In 'n.createContext(o.default)', 'n.createContext' is undefined)

I'm trying to implement React Native into an existing Android application. I follow the steps in the official documentation and I have ended with the following

How to read Android platform key signature programmatically

I need to read the signature of the platform key, which signed the whole build on the device. Currently, I can read the signature of an arbitrary package like c

Store a variable in Android

Is there any way to have a boolean that goes true when successful login and false when not, and to be able to access it and change its value in the activities?

why fingerprintsimilarty in my code does not work?

I'm creating an application to recognize the sound of two wave files, for doing this I have found that "Musicg" library is used for that purpose. so I just writ

Keep webview playing audio in background

I have a simple webview that open a music player from my website that works fine, but my problem is to keep the player playing in background when the phone lock

Does ExifInterface.TAG_SHUTTER_SPEED_VALUE really measure shutter speed? If so, how to convert it to a more standard format?

I'm trying to get camera shutter speed when a photo is taken with Android camera. Using this instruction in an image the app creates that contains the taken pho

How to call custom uri using content provider kotlin

Basically what i want to call a SOS number using the android content provider from a smart watch. I have searched a lot but not able to find the correct path to