Category "android"

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

Trying to save Night Mode State using Fragment

I am trying to enable Dark Night Mode in my App which is working though but when I restart the app it goes to again Light Mode basically I want to save Dark Nig

Zoom photo inside viewpager2

I tried to use PhotoِDarweeView inside ViewPager2. When I want to zoom in on the photo horizontally, it does not zoom in and instead the ViewPager2 swipes

How to remove padding between AlertDialog and title/text with Compose

Using compose, I want to create something like this : Problem is using compose AlertDialog I only achieve to get this : There is a padding between the AlertDi

How to remove padding between AlertDialog and title/text with Compose

Using compose, I want to create something like this : Problem is using compose AlertDialog I only achieve to get this : There is a padding between the AlertDi

getting build error after updating ads dependencies to latest version

I am getting this build error while I am trying to run my application from the Android studio. Execution failed for task ':app:checkDebugDuplicateClasses'. >