Category "android"

Android studio SQLite update ID's after deleting first row from table

i'm using SQLite to store data and if i delete the last row, ID is 4 and after that add a new row and the ID is 5 and it should be 4. And when trying to view th

Share Intent for dynamic image in imageview without saving, using kotlin with little permissions as possible

I need to share the image in the imageView and the following code is promising (though not quite what I ) but returns some errors: Kotlin: fun shareImage (i

(flutter): audio cache not playing a specific sound (.mp3) in android version > 9

I am using audioplayers 0.20.1 for playing sound on button press in my flutter app. For a specific sound, it is giving me some error only on android version >

UI Automator - Avoiding the App closing at the end of the test

I've just started to work with UI Automator to make integration tests for my Android App, and I'm experiencing this problem: After I've performed a test, the ap

Cannot run emulator for Wear OS on Apple M1

I want to start an emulator with Wear OS on my MacBook Pro with M1 chip. When I create a new device and choose WearOS, I see no system image in the "Recommended

toBundle.toPutInt() method of NavArgs is not working

So, in Android's Navigation, when we want to pass parameters from a FragmentA to a FragmentB, we have two ways to receive this parameter, via Bundle, in Fragmen

Storage in android 10 and higher

I have some doubts regarding the storage in the android! How does WhatsApp use and manage the storage. some of the files are stored in android/media, some are i

How to update Jetpack compose UI by override method or outside the function

I am converting my older XML UI as per requirement. in there, I am unable to update by Jetpack compose UI by my override function. In some research I see many w

Android widget OnReceive() being called multiple times when running WorkManager request

I have an app which has a home screen widget via GlanceAppWidget(). I would like to run a worker inside the Content() function of GlanceAppWidget(). I have used

How to receive data from Instagram programmatically android

By referring to existing blogs like this I got to know it can be done adding ?__a=1 as a extension to link then it will return a jsonObject, sure it does but on

PackageManager.FEATURE_FINGERPRINT always returns false on API 23

I am using Fingerprint authentication in my app. To decide whether a device has a fingerprint hardware or not I am using this getPackageManager().hasSystemFeatu

Create emulator with API level 32 in android studio

I created an emulator but it doesn't work. I selected pixel 3a xl phone and I selected Android API 32 (Google play) with x86-64 ABI. It gets timed out when I ru

Lombok Plugin Does not Working In Latest Version Of Android Studio (Bumblebee)

I use Lombok in my project and recently Update my Android Studio To the latest version (Bumblebee) And The Lombok Plugin doesn't work, is there any way to solve

How to remove memory leaks in android studio using leak canary

This is my leak stack trace from Leak canary in my android app. I was unable to provide the whole stack trace but here are the ends and begining ┬─&

There is no overloaded version of 'RequestPermissions' that can be called with these arguments giving more then one permisssion

with Delphi 10 i used a procedure to give android app multiple permissions on a onCreate Event: var permBatt, permRead, permWrite, permBlue, permAccess, per

Android - VideoView unable to play video in external storage

Inside of a fragment in my android application, I take a video using an intent and then save it to my external storage: private void dispatchTakeVideoIntent() {

error gradle when update to bumblebee android studio version

today, i update to bumblebee android version, and i create new project and i import some lib, include dagger-hilt. in build.gradle (module) i insert: plugins {

Targeting S+ (version 31 and above) requires that one of FLAG_IMMUTABLE or FLAG_MUTABLE be specified

App crashes at runtime with the following error : java.lang.IllegalArgumentException: maa.abc: Targeting S+ (version 31 and above) requires that one of FLAG_IM

Handle Notification Bidirectional Body Text in the Correct Way

I have a notification service that sends a notification to the client according to its language. The notification body language can be either Arabic or English.

How to know if a support library already supports AndroidX?

I have project in unity, that uses Mapbox, Mapbox includes the following support library: support-v4-25.1.0.aar This library comes as an .aar file and NOT as a