Category "android"

Auto scroll recyclerview slider

I am new to Android development. I am trying to create an auto scroll recyclerview slider which also supports user events such as next and previous buttons and

Trying to use NavHostFragment and im getting an error: Error inflating class androidx.fragment.app.FragmentContainerView

here is the caused by: " Caused by: android.view.InflateException: Binary XML file line #21 in com.example.dnaire:layout/main: Binary XML file line #21 in com.e

Jetpack Compose Applying PorterDuffMode to Image

Based on the images and PorterDuffModes in this page I downloaded images, initially even though they are png they had light and dark gray rectangles which were

Android Chrome keypress event "Enter" not triggered when using multiple input elements

When the user clicks on the 'Enter' button in Android (right bottom button) I'm unable to catch the event. I tried 'keyup', 'keydown', 'keypress' and the native

Log method name and line number in Timber

Is possible log the current line number and method name using the Timber library? Expected LogCat result: ismaeldivita.myapp I/[L:22] [M:onResume] [

Android error getSlotFromBufferLocked: unknown buffer: 0xa9fb8d90

i am working on an android app which uses material-intro dependencies for intro slides, but when the slide complete and try to switch from the Slide(Materialint

Osmdroid: How to force a map to refresh?

I am displaying a large number of overlays on a map; the process takes 5-10 seconds. Rather than using a progress bar I want the overlays to appear gradually on

Action Dial works but Action Call gives issue and doesn't do what I want

This code works like a charm but at dial screen i want it to auto make call. however i have changed ACTION_DIAL to ACTION CALL and still no luck. I have give fu

Not a direct subclass of GenericTypeIndicator: class com.google.firebase.database.GenericTypeIndicator

I have Firebase App with Realtime Database, I have db.json as { "brs" : { "route": [ { "routeDestination": "DDDD1", "routeOrigin":

Limit for Device Group Messaging (FCM)

As per docs, it is stated that - "The maximum number of members allowed for a notification key is 20." What are 'members' here? Are they the registration toke

"Your Android App Bundle uses an upload certificate with a key that is too weak."

I got the following message in the Google Play Developer Console when I was trying to upload my app bundle after creating it using Android Studio Canary: Yo

how to call the start activity from one java class

Is it possible to start an Activty using an Intent in a general java class which extends Activity? import android.os.Bundle; import android.view.View; impor

Attaching cache file to GMail through FileProvider and Intent not working

So I've been banging my head against the wall for the past day trying to figure out why a file won't attach to an email. Every time the app runs, I get a little

How to hide navigation drawer when opening certain fragment?

I'm pretty new in android development. I want to hide navigation drawer when user is not logged in. So basically, it will shown login fragment (better in full s

Change the Color of ScrollView Programmatically

What I'm currently doing Currently, I have changed the scrollbar in my XML file using the android:scrollbarThumbVertical property like so: <ScrollView

more than one device/emulator - Error while trying to cast with Genymobile

I have attached a device and emulator. When I'm trying to cast screen with Genymobile I'm getting: INFO: scrcpy 1.10 https://github.com/Genymobile/scrcpy adb:

TextInputLayout change start icon tint color on focus

How to change startIconDrawable color when the focus is on the TextInputEditText <com.google.android.material.textfield.TextInputLayout a

TextInputLayout change start icon tint color on focus

How to change startIconDrawable color when the focus is on the TextInputEditText <com.google.android.material.textfield.TextInputLayout a

What is the meaning of "avc: denied { read } for name..." line in logcat? [duplicate]

I am wondering about avc: denied messages in my logcat. W/RenderThread: type=1400 audit(0.0:631436): avc: denied { read } for name="perf_ioct

Android app removed from Google Play store due to no prominent disclosure

My app is showing the prominent disclosure in my view and also has a switch to agree with the privacy policy. But the app still gets removed by Google over and