Category "android"

RecyclerView sorting process and getting position issue

I have an activity that shows model comes from Firebase in a recyclerView. Each row has a delete button and user can delete which row he/she wants. The problem

Android device shows microphone is actively being used even though session is paused and audio is disabled

Start publishing to a session, notice that Android OS now reports that camera and microphone is being used by the app, which is fine. Call session.onPause() fo

Get multiple times current time on single Button

I have a button showing text START when I click on it I shows me current time in textview.(I consider this time as start time). Than convert the text on Button

Finding Error in android studio java.lang.SecurityException: Need android.permission.BLUETOOTH_CONNECT

I am new to Android studio. I am trying to connect to brother label printer QL-820NMB with the new Android APK (SDK 31) with android version 12 and the device

Why is my imported image asset completely black in color?

I am trying to import a png image to use in my app, from File -> New -> Image Asset. After choosing my desired image file, my preview is this: I have tri

How to show and save contact name in Android Fragment

I am a newcomer to Android development and Kotlin. I encounter a problem when I read a Android programming book. The book uses startActivityForResult() and onAc

E/LB: fail to open file: No such file or directory - Flutter

I try to display whatsapp Status images from the File directory ('/storage/emulated/0/WhatsApp/Media/.Statuses'). But there do not appear any image. Console sho

Deprecation warning in gradle in Android Studio in Flutter project

I have created a Flutter project in Android Studio (Bumblebee | 2021.1.1 Patch 3). When I open the android folder in a seperate window, when the gradle syncing

How to post JSON Object direct using Retrofit in android Kotlin (Using MVVM Pattern)

I am using retrofit for posting data to server as below @POST("web_php/app_user_login") suspend fun loginApi(@Body body: RequestBodies.LoginRequestBody):

Navigation Drawer Custom Action bar [ Icon ] problem?

My custom navigation drawer is working properly but as mentioned in the solved answer but I am confused about this line of code Problem ! Press the back button

Android App receives 2 connections from the same device (nRF Module)

I have an android app which scans and connects to a predefined device name. My peripheral is an nRF module which is sending an incrementing data at 1Hz. However

How to build a tree using LazyColumn in Jetpack Compose?

In my jetpack-compose app, I'm building a comment tree, where the top level, and the leaves, are lists, that would be best to use LazyColumn. This is of the for

android emulator disable microphone when launching device

How do we disable the (virtual) microphone when launching the emulator? Situation When launching an Android Studio stock emulator device, the microphone is alwa

How to remove application from "All Apps" in Google Play Console

Is there any way to permenantly REMOVE an application from the list of applications in Google Play Console? (not just Unpublish). I would be very grateful for y

Can't find the Transitive Dependency using maven publication

I have checked multiple questions and have checked the answers as well but those are not working for me. LibraryA -> LibraryB -> App I want to access the

How to check classifier declaration in lint rule android

I want to include some additional lint rules in my Android project. when setting up our modules & their corresponding dependencies I need a rule that we alw

Google PLay Console doesn't remember text and pictures inserted before

I have created a full description and put icons of my App to be created and sold via Google Play Console, but when I visit the developer page again nothing is r

Android app's access to TxAdd and PDU Type in the received BLE advertising packets

I am writing an app that performs BLE scanning to collect advertising packets nearby. I wonder if Android Bluetooth libraries allow us to extract the TxAdd and

Can these regexes cause catastrophic backtracking? [duplicate]

I'm new to regexes. I am using these regexes throughout my android project. Can any of these cause the catastrophic backtracking? To check for

Recompose when back to activity

I have an activity with a list of items (LazyColumn). When I click on an item, it launches a new activity to edit the item. If I change the item and save it, go