Category "android"

Retrofit call in Kotlin Coroutines viewModelScope

Recently I've updated my ViewModel to use new viewModelScope. From its implementation, I see that Dispatchers.Main.immediate is set as the default CoroutineDisp

Retrofit call in Kotlin Coroutines viewModelScope

Recently I've updated my ViewModel to use new viewModelScope. From its implementation, I see that Dispatchers.Main.immediate is set as the default CoroutineDisp

Trying to get a child key value from a json object saved in an map-variable in sketchware

i have the following json as a get response: { "global": { "name": "Lz Cha0S", "uid": xxx, "platform": "X1", "level": 521,

Howto getExtras from a local broadcast Intent in react-native

in my React-Native opened project, I want to receive the data (extra text) sent by another local service app named "scanservice" on its intent output (broadcast

Data class metadata is removed with proguard / R8 for Kotlin 1.6.0

I have a package with some data classes and I'm trying to access the constructor at runtime using Kotlin reflection clazz.primaryConstructor, Everything is work

Implement GestureDetector.OnDoubleTapListener properly on custom view

I have a CustomAutoCompleteTextView and I want to be able to call showDropDown(); when the user double-tap on it. As the title says implements GestureDetector

Facebook ads for kotlin

i am trying to show facebook ads on my android app written in kotlin but everytime i try to add code it shows errors, i searched everywhere but could not find a

Android giving Unknown constant tag 85 in class file

I was working in the android studio all thing were fine until it gives me a sudden error which I have no idea how to fix it. A problem occurred evaluating pro

Android 12: Redirect to Alarms & Reminders settings not working

I want to show snackbar to user, if he has Alarms & Reminders turned off in my App (since Android 12 its mandatory to have this settings enabled in order to

React native communication between React native and android with custom object

I have a react native component that communicates with Android like this - My React Native code- const myModule = NativeModules.MyProcessor; myModule.proces

Custom Image Slider Android studio?

Style Slider Corner radius Layout is getting scattered on corner radius so i have no idea about it if any one help ! xml File <com.smarteist

Android onRequestPermissionsResult utility of super

When I'm using onRequestPermissionsResultiis it is usefull to keep the super ? @Override public void onRequestPermissionsResult(int requestCode, String permiss

One Android project two java file & res file

I took this from another resource but I have two java files and a res file I could not understand very well. Are these two files necessary?

cant generate sign apk

I can't generate signed apk with android studio 2.1.3 after installing new windows 10. I have my password and I'm sure the password is correct but when I try to

Failed to transform file 'some-lib-release.aar' to match attributes {artifactType=processed-aar} using transform JetifyTransform

I have a project with 2 modules: an app (Java) with build types debug, release, and enterprise and a Kotlin library (release and debug) used by the app. I'm us

Is it possible to create a Full Screen Intent for Android via FCM?

I'm working on an Android app that receives high priority emergency notifications and I'm looking to create the closest parity I can with iOS's critical alerts.

Floating Action Button is not showing an image in Android?

As title says, I don't know how to fix this issue. I read this problem but that was in 2018, I'm not very familiar with all those libraries and dependencies how

How to solve Attempt to invoke virtual method 'void com.google.firebase.auth.FirebaseAuth.signOut()' on a null object reference?

I have two activities (mainactivity and main2activity). I got the Google login code from GitHub Firebase login demo. When in SignIn with Google, it redirects to

IllegalStateException on DataBindingUtil.setContentView: Restoring the Navigation back stack failed, current destination null

For some users, my app seems to crash regularly at or near app start. It's been an issue I've been trying to figure out for a while but I haven't had much succe

Headless Android Emulator: GPS Location does not work even with setting Geo Fix

Summary: Entering geo fixes into the Emulator Console of a headless emulator does not set moc location data. Is there a workaround? Steps to reproduce: 1) Sta