Category "android"

Dynamically shorten text to avoid ellipsizes in jetpack compose

I'm looking to implement a calendar-like application including a day-detail screen in Jetpack Compose. This screen has a TopAppBar, in which i'd like to show th

Can matomo customize and track screen views like Firebase analytics?

I am trying to migrate my application from Firebase to Matomo. One feature I would like to have is to keep track of average time user spends on a certain screen

recursion and ram flood: Starting a Gradle Daemon, 1 busy and 6 stopped Daemons could not be reused, use --status for details

I'm using this plugin https://github.com/mozilla/rust-android-gradle, which requires me to add tasks.whenTaskAdded { task -> if ((task.name == 'javaPreCo

Stream audio file from Google Drive returns Code 403

I want to stream an audio file from Google Drive. The Google Drive file is public, so who has the link can access it. Creating the link works in my app as descr

How to make a simple Flutter stopwatch foreground service on Android?

I am implementing a stopwatch (0 to .. seconds counter) in my app. I succesfully implemented it in my Dart code, but I need it to work even if the app is closed

Zendesk SDK JwtAuthentication not working

I have the SDK for android and I try to setup JWT Identity for chat and support modules. I have a webhook defined as in the doc. It work. I see in the log that

How to integrate autofill in Jetpack Compose

I want to provide some autofill functionality in my app (email and password) that is written completely using Jetpack compose. I came across this blog post and

setRetainInstance is deprecated. What is alternative?

setRetainInstance is deprecated. What alternative? I have a lot of fragments with many complicated object variables inside them. Today I only have one line of c

Firebase read and onClick handler Error in reading the Firebase value: pricecode

Please tell me specifically how to fix the function so that when the button is clicked (onclick handler) passes the value from the database to the firebase USER

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