Category "android"

Jetpack Compose take screenshot of composable function?

I want to take screenshot of specific composable function on Jetpack Compose. How can I do this? Please, anyone help me. I want to take screenshot of composable

voice recognition constantly in background android [closed]

FfhggtffgtfgtgftI want develop application that whenever it recognizes a keyword it does something. it needs to be in listening mode all the t

Jetpack compose onClickLabel for Button and IconButton

Working on accessibility enhancements for my app. From Docs, I can see that Card has both onClick and onClickLabel as part of the API. And for composables witho

Expose Dagger provided dependencies through component or module in multi-module app?

I am looking for some guidance on the best code structure for dagger in multi module android apps. Lets say we have featureModuleA and featureModuleB, both of w

How to Unsubscribe from coroutine flows right after RoomDb call

I'm trying to query Room database(action 1) and then based on the returned results perform another action on the same table. however I noticed that every time I

Changing audio source for media player (Android Studio)

I am trying to create a button that plays a sound at random from the list of sounds on click. The code I have randomises the first sound, but the subsequent cli

Disable dark theme in Ionic

I'm designing an Ionic app, and I would like it to have white backgrounds and black texts whether the user has enabled the dark theme or not. This is what I wan

Cancel viewModelScope and re-use it later on

I'm using Coroutines for dealing with async jobs: viewModelScope.launch { val userResponse = getUsers() //suspendable function } What I want to do is stop

How to set the part of the text view between @ and alphanumeric (same as telegram user) is clickable in android java?

I want to convert the part of a string (textview) that contains the username to clickable and after the user clicks, move it to the same user's profile page (li

Android 10: Delete denied by permission:android.permission.ACCESS_MEDIA_PROVIDER

Target SDK in my project is 31 and when I'm trying to delete a file from DCIM directory, I'm getting following error such as delete denied by permission:android

Why does my OpenGL ES app crash on glDrawElements?

I have developed a mobile game with OpenGL ES 3 on Xamarin (Which uses OpenTK). It's running fine on most devices, but crashes on some devices (HUAWEI Y5 lite).

BluetoothAdapter StartDiscovery does not work in Foreground Service

My application starts a service that detects phone shaking. When the service detects a shake, it searches for a BT device within range and if a suitable device

Google maps cross-platform URL fails to load route on Android after "in app navigation"

I have an Angular 9 + Ionic 5 application, deployed as PWA, Android and IOS apps. We use google's universal, cross-platform URL to launch Google Maps, as descri

How to satisfy "non-valid Wear OS screenshot which is framed within the device" Wear OS watch face policy violation?

I adjusted the COVID-19 data checkbox in my Wear OS watch face's play store settings. After submission I got an unexpected policy violation of "Your app’s

Flipper Network Plugin doesn't show network requests

According to the documents here, I followed the necessary steps. Yet, even though I can see the requested data when I debug my app, I see no network traffic on

Exception in thread "main" java.util.zip.ZipException: error in opening zip file When testing the application

In Android Studio the application was running on Real device, it was exported in ABK format .. But after a while, this error appears I read about gradle but did

Android Studio Windows: Debugger process finished with exit code -1073741515 (0xC0000135)

I have both native code and Java in my app so I need to be able to debug both Java and native code. After upgrading to Android Studio Bumblebee | 2021.1.1 Patch

Crash when permission changed manually

Flutter app crashes when user manually changing location perimssion from allow to deny. Is this a normal behavior ?, i've tried to change manually the permissio

android, in what case the os will create action button in the notification

In the doc it says: In Android 10 (API level 29) and higher, the platform automatically generates notification action buttons if an app does not provide its ow

Downloadable Font's font weight not working android

I was following this official guide and wanted to use Poppins font for my project. The font has changed but the font weight property does not seem to be work. I