Category "android"

Create drawable programatticly in jetpack compose

I want to use rectangle with rounded corner for placeholder in coil in jetpack compose. I need use different colors for placeholder depends on my algorithm. The

Android Changing Action Bar color

I want to change the Action Bar color, but I don't know how to do it. What should I add to change the style? <resources> <!-- Base application theme.

Glide not loading real image and stuck with placeholder

I have a pretty basic load image from server line code: Glide.with(view.getContext()).load(url).placeholder(R.drawable.default_profile).into(view); For some

FirebaseMessagingService Illegal Access

I am using flutter for building application. Recently, I have added firebase analytics to it but now I am experiencing one fatal issue. I am not sure what is ca

How to unrealize a json using GSON? Get an error

The structure of the json that I have stored in a string is: { "0": { "PDate": "2019-02-25 00:00:00.0000000", "DDate": "2019-06-25 00:00:00.000

ClassCastException: android.app.Application cannot be cast to android.app.Activity

I have an activity class along with customlistadapter inside customlist adapter. I have a thread runouithread which give me error msg when i wrap it with ((Act

Cannot find findelementbyandroiduiautomator method for appium android driver

I am using android driver with mobileElement typecast, but I cannot find the findelementbyandroiduiautomator method in my list of methods. All the other methods

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