Category "android"

How to apply a mask date (mm/dd/yyyy) in TextField with Jetpack Compose?

I have a TextField in which there cannot be more than 10 characters, and the user is required to enter date in the format "mm/dd/yyyy". Whenever user types firs

How to print a web page using javascript with Android POS Machine

I am using an Android POS machine to print receipts for my customers using an Android App. Recently I made a website for this service and need to print by web

I/Counters: exceeded sample count in FrameTime log

I recently started to see this logs I/Counters: exceeded sample count in FrameTime multiple times in my app logcat, I understood it comes from Google Maps. Any

How do I print programatically on android without the prompt where you have to choose a printer?

I've been trying to find a solution to this issue all day but I haven't come across anything and android has no documentation related to this. Normally when you

Manifest merger failed : Apps targeting Android 12 and higher are required to specify an explicit value for `android:exported`

Please help me with this error getting in my project while trying to run at mobile via android studio. Manifest merger failed : Apps targeting Android 12 and hi

checkjni error happen when use android studio build apk, while use unity build apk run well

with my jni demo, i use CallStaticIntMethod to call java method with boolean return. then i build this to .so, when i use this so in android studio project, the

How to build multi-origin Trusted Web Activity with a wildcard for subdomains

Given a web application with multiple sub-domains. The user is able to navigate from one subdomain to another. The number of subdomains is not fixed (a new subd

Failed resolution of Landroidx / ActivityCompat;

I'm trying to make a java library for my Unity game. In this case I want get permission from Android API. However, I get an error: AndroidJavaException: java.la

Why is ListPopupWindow OnItemClickListener not called?

For some reason I can't get this popup to react to clicks, onItemClick is not called. String[] actions = new String[]{"1", "2", "3"}; ArrayAdapter adapt

Android sensor orientation problems with edge-to-edge insets

In edge-to-edge mode it is often useful to check various insets (status bar, navigation bar, etc) in order to make adjustments to your UI. Unfortunately when a

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