Category "android"

Implementation OKHTTP doesn't work on Android project

i followed this tutorial: https://www.journaldev.com/13629/okhttp-android-example-tutorial But when i try to start the project give me this error: Execution fai

Custom Adapter Not showing data

I have developed an custom adapter which takes data from SQLite. Data is selecting and adapter also gets data. But its not showing in the list view. I don't get

stay awake over wifi debuging

I use WiFi ADB Active or ADB Wireless application to debug my build app in eclipse over Wifi instead USB debuging. how I can keep turn on my device during

Modules that need to be instantiated by Hilt must have a visible, empty constructor

@Module @InstallIn(SingletonComponent::class) class WheelModule constructor(val size:Int) { @Provides fun provideWheel():Wheel = Wheel(size) } Module

How to change the status bar color in Android?

First of all it's not a duplicate as in How to change the background color of android status bar How do I change the status bar color which should be same as i

Making screenshot of Google Map bigger than my device screen

I'm developing an Android application which is using Google Maps API v2 and is sharing the map screen through socket connection with another Android device. It

Adjust androidx.preference dialogs to follow Material You

I have two apps containing a preference section, and i'm using the preference library, the latest version available at the time of writing: implementation "

missing permissions required by BluetoothAdapter.isEnabled.BLUETOOTH

I add bluetooth to my app but am running into the following problem. When I do the code: BluetoothAdapter bluetoothAdapter=BluetoothAdapter.getDefaultAdapter()

Adjust androidx.preference dialogs to follow Material You

I have two apps containing a preference section, and i'm using the preference library, the latest version available at the time of writing: implementation "

Can I get the routing table entry in Android?

Is there any method for getting the routing table entry in Android? Please share the information..

Android tests BuildConfig field

Suppose my build.gradle file defines different values for the same variable that is defined in BuildConfig: android { def INTEGER= "integer" def VARIAB

Android: Color To Int conversion

I'm surprised that Paint class has no setColor(Color c) method. I want to do the following: public void setColor(Color color) { /* ... */ Paint p = new Paint();

Handling refresh tokens for FCM device groups

I am trying to implement Firebase cloud messaging in my Android app through a Node.js server and I have got stuck at a usecase. I saw the Firebase tutorial of

Android aar library does not include BR class

I develop a small library for testing aar library creation with databinding. My problem is when I generate the aar file it doesn't include the BR class generat

getActionBar() returns null

I'm having an odd problem. I am making an app with targetsdk 13. In my main activity's onCreate method i call getActionBar() to setup my actionbar. This works

Data Saver Mode - React Native

I build an app using react native v0.60. Receive a complain from user when they set their phone in Data Saver mode the app is cannot be used. The user need to e

AAssetManager_openDir takes long to execute

I have a problem with AAssetManager_openDir method taking long to return. It is not affecting all devices, it looks like it is quite fast on ART devices (only m

: Can't access the Fragment View's LifecycleOwner when getView() is null i.e., before onCreateView() or after onDestroyView()

I am using live data in my application for all the network calls and response handling. In one of the scenarios, my recycler view is loading some data in its v

How can I find if a particular package exists on my Android device?

How can I find whether a particular package or application, say: com.android.abc, exists on my Android device?

How to add a button with image and text dynamically in Android GridView?

I want to add ImageButtons with text dynamically to a GridView (Something like below) and also set a listener such that a user enter a different page, when he c