Category "android"

Check if Android app is running on a Google test device?

I recently uploaded an app bundle to Internal App Sharing, and was surprised to see that on my backend, there were 7 new users of this new app version just a fe

Android Studio cannot resolve org.junit

I am using JUnit tests in Android Studio 1.2.2. The tests run without a problem. The only thing that puzzles me is that Android Studio cannot resolve the actual

kotlin kapt3 KaptBaseError: Error while annotation processing ::For Room Database

I am running into this strange issue in the Room database operation classes. There are lot of Annotations are used, starting from Database then Entity, DAO... N

Strange value comparison issue in Kotlin, "===" returns true but "==" returns false

I have encountered a very strange value comparison issue in Kotlin that I cannot explain, the following code prints false data class Foo ( val a: Byte ) fun

Android RecyclerView only contain one item after adding items got from asynchronous retrofit calls

I have a recycler view for image display with a simple adapter. public class ImageListAdapter extends RecyclerView.Adapter<ImageListAdapter.SingleItemRowHold

Variable retrieved from json data doesn't seem right

I retrieve data from mysql server and one of the fields is an int value (1 or 0 ) and it's printed right (1 or zero ) but when I try to apply an if condition on

Kotling :: Android :: java.lang.ClassCastException: java.lang.Class cannot be cast to androidx.lifecycle.ViewModel

I am getting an exception in the first line of the code below viewModel.homeLiveData.observe(this, Observer { list -> list?.let { mLis

Musicg fingerprint for audio input

In musicg I can compare fingerprints of Wave files by the following code : double score = new FingerprintsSimilarity( new Wave("voice1.wav").getFingerprin

Difference between enterAlwaysCollapsed and exitUntilCollapsed scroll flags in coordinate layout

I'm unable to understand difference between these two scroll flags applied to the toolbar or collapsing toolbar, when scroll up and scroll down

How to add drawable to a Text in Compose?

As in XML we used to add a drawable to a TextView, so What is the equivalent of android:drawableLeft, android:drawableRight in Jetpack Compose Text? Is there an

Duplicate Classes to handle app flow (with explicit intents)

I have three different options in my app that allow the user through several of the same classes but at different times, ie 1) Sharing with friend: MainClass

Memory Mapped File location

I am trying to search a list of 268 000 words. The idea is to check whether a word that the user inputs exists in that list. I have accomplished this using a si

Set FAB icon color

current FAB I would like to know how to change the icon color of the FAB (Floating Action Button) widget supplied by the 'com.android.support:design:22.2.0' li

write COMMENT tag to WAV and M4A

I have an audio app and I need to read and write the COMMENT tag of WAV and M4A files. This is all I need. I had struggled for hours without success. The closes

Android Jetpack Compose white TabRow

I am trying to get Tabs working with a TabRow on Android with compose. What I'd like is the TabRow to have a white background. The default color seems to be thi

React Native Release App.apk search metro server

I have created a release of my android application. I have used Android Studio to create it, however, when I install the application it closes automatically. Th

Does firebase auth UID expires or not?

I'm goning to use auth.UID in my backend web service as api_key for each user I wounder if UID is final key or it expires/changes

Cordova build Execution failed for task ':app:compileDebugJavaWithJavac'

I am building mobile app using cordova https://cordova.apache.org/ I am facing error when I am trying to build for android platform even after updating build.gr

Gradle - "enforceUniquePackageName" deprecated with version 3.0.0+?

android { enforceUniquePackageName = false } "enforceUniquePackageName" works with the gradle version: dependencies { classpath 'com.android.tools.bu

Android changing Floating Action Button color

I have been trying to change Material's Floating Action Button color, but without success. <android.support.design.widget.FloatingActionButton android:i