Category "android"

Cannot remove padding from Android Material slider

I've created a slider and I want to remove the padding. It seem it's not possible. I know there is some padding necessary for the thump, but I'd like to take ca

Confused about official Android documentation on Flow

I refer to the official Android documentation on using the Flow library in the recommended app architecture. In the UserRepository class: class UserRepository @

Service info.mqtt.android.service.MqttService has > leaked IntentReceiver

I keep having this error log when ever i toggle off a switch in my app. E/ActivityThread: Service info.mqtt.android.service.MqttService has leaked IntentReceiv

Android - How to set heads-up notification icon background color (using FCM or default value)?

I have been able to implement notification icon/text color in the notification center as per Firebase docs. However, on Android 11 (or at least, on my Galaxy S2

ExoPlayer PlayerView inflation taking time and causing significant frame drops

Inflation of com.google.android.exoplayer2.ui.PlayerView takes close to 25 to 30 ms on an average. And we are using in viewpager, so everytime user swipes the p

Can't cast okHTTP response as JSON

I am using okhttp 4.9.0 to make API requests, but seems that can't get the response body as JSONOBJECT. This is my code: client.newCall(request).enqueue(object

BottomNavigationView setOnNavigationItemReselectedListener is deprecated in Material Component version 1.4.0. What to use now?

BottomNavigationView setOnNavigationItemReselectedListener is deprecated with Material Component version 1.4.0. What to use now?

Dagger-Hilt Did you forget to apply the Gradle Plugin? But I applied the plugin

Hello I'm trying to use the Dagger Hilt library In my project but when I'm trying to build it, it fails with this message public final class MyApplication exten

Flutter IAP - Error you already own this item

I'm trying to implement Flutter InApp purchases on Consumables but I keep getting the following - error you already own this item when I try to buy again. I wan

Room migration - Is it safe to use Cursor in migration code (to get row ID)?

This is my migration change: Basically rename and then update some values based on the row id where isNext = 1. I suppose I need to use a Cursor as shown in thi

image get displayed on app but not on widget remoteViews

i'm displaying image stored on device storage to image view on app and in imageview on widget, it works fine on app but on widget it's not getting displayed and

This app is using a deprecated version of the Android embedding

I am getting the following error. This app is using a deprecated version of the Android embedding. To avoid unexpected runtime failures-, or future build failur

flutter_downloader In the release version, it crashes (on Android)

I use flutter_downloader (on Android) Everything is correct in debug and profile mode and works well, but in the release version, after hitting the download but

Parcel a List of objects from another Parcelable class in Kotlin

I'm working on a weather app for a class and I'm having some trouble with parcelable. I've looked at several other questions that are similar to this on StackO

Angled gradient background in Jetpack Compose

I am trying to draw a gradient background in Jetpack Compose, and I would like the gradient to have a fixed angle regardless of the shape of the object I'm draw

How to use clipboard service in jetpack compose

I want to copy a string to the user's mobile clipboard but I don't have any idea how I can use clipboard services in jetpack compose, If there is any alternativ

pointerInput of Modifier takes no actions

I need a Card() Composable with a normal press and a long press functionality for a custom Card Composable. The thing is Card() has its own value called onClick

Android: How do I programmatically DOWNLOAD an SSL certificate from a provided HTTPS URL?

try { final SSLSocket sslSocket = (SSLSocket)SSLSocketFactory.getDefault().createSocket(); Timber.e("RAWR: BEFORE CO

Socket connection not workin in flutter release apk

I am new to working with sockets, and I am working on this project where a connection between my android flutter app and a java server is needed, to do this I a

Disable Usb Ports in rooted Android device

I want to disable usb ports in my rooted android device, When I run below code it returns result is true but usb ports is still active, I want to disable usb po