Category "android"

Can you UnitTest Android workers that employ Hilt constructor injection

Im investigating the use of Hilt in my current Android application. api 'androidx.hilt:hilt-work:1.0.0-alpha02' implementation "com.google.dagger:hilt-android:2

Right place to map to Domain in Android clean architecture

Me and my colleague are having a debate as to where would be the right place to map our entity objects or remote dto objects to plain simple domain objects. Our

How to add a drawable image in a map marker

I want to add an image into my map marker, I don't know why this code is not working. The marker is not displaying in my current location. Here is the code. @O

VibratorManager on Wear OS 3 and Android Chipmunk 2021.2.1 Beta

val context = ApplicationProvider.getApplicationContext<Application>() val vibratorManager = context?.getSystemService(Context.VIBRATOR_MANAGER_SE

Push notification doesn't pop up on Android

I am creating flutter application using FCM for sending push notifications. I am sending notifications with Cloud Functions from website by sending JSON to devi

Detect Adapter onclick Listener method in activity using Entrypoints Dagger hilt

I need a help to detect adapter onclick event in activity class with the help of dagger hilt. Step1 : I have created one interface class which name is ItemClick

Android ViewModel - "by activityViewModels" called before "by viewModels"

After some time away from android development I'm trying to start again with a simple project. I've created a new project picking the "basic activity" option wh

Crossfade Animation with multiple Images using Ffmpeg

I'm creating video with Multiple images using Ffmpeg and i'm using given link - (Remember most important thing is All the images have different sizes) https://s

Is it possible to use kotlinx-datetime with Gson

I have JSON data which is retrieved from the local realm database. I'm trying to convert it into the corresponding data class. I have an ISO date field { ....

How to update jetpack compose slider state outside of the slider

So, I'm using the Jetpack compose for my app and I have a state with a float value in the viewModel. This value can be updated outside of the slider; but also f

Failed to resolve: com.android.support:appcompat-v7:31.0.0

I'm trying to add Jitsi meet sdk to my android project. i've implementation('org.jitsi.react:jitsi-meet-sdk:5.0.2') { transitive = true } and maven { url 'https

Error "Cannot resolve symbol R" only in one file

When enabling View binding, I cannot reference the resource files in custom RecyclerView Adapter anymore. I get an error "cannot resolve symbol R" and it attemp

Critical alert android equivalent

I am developing an app for a local fire department using React-Native, one feature is to alert everyone in case of emergency. On iOS I can use "Critical Alerts"

Use a different image if Dark Mode is enabled on Android

I have two variants of a PNG, one where the drawn text is black and one where it is white. By default, on a white background, I am using the black image variant

How do I wait until data from Preferences DataStore is loaded?

I'm trying to make a LibGDX Live Wallpaper. But I think that is unrelated to the problem I'm having at the moment. Basically, I'm storing the wallpaper's settin

Can i "add module" to unity editor that download without unity hub?

I downloaded unity editor from unity download archive but now i need the android build support module "also known as android SDK/NDK tools" but the "add module"

Firebase android studio not inserting data correctly

This is the data being inserted the the correct one is the [email protected] while the incorrectly inserted ones are the ones with a:Name mAuth.createUserWithEmai

Firebase android studio not inserting data correctly

This is the data being inserted the the correct one is the [email protected] while the incorrectly inserted ones are the ones with a:Name mAuth.createUserWithEmai

How to remove app bar in fragment without .NoActionBar in themes

I need to remove this home_fragment action bar, but I can't write NoActionBar in themes.xml because bottom navigation won't work that way. Anyone has any soluti

error: [MissingType]: Element 'xxxxx.AppDatabase.room' references a type that is not present

error: [MissingType]: Element 'xxxxx.AppDatabase.room' references a type that is not present I get the mentioned error in the title when I try to compile my cod