Category "android"

getUUIDS returns null when device isn't paired

For some strange reason i can't get the uuids of a device i'm getting after a discovery. But if I paire both device before the discovery, then the method getUUI

Play Core in app update giving UPDATE_NOT_AVAILABLE on production release

I have integrated the play core in-app update it's working fine in the testing track but when a release is published in the production track it's always giving

Set background color in flutter chart

I am using charts_flutter to build a bar chart, but having a hard time setting the background color. The char is working fine, but I cannot seem to find the opt

JSON Serialization / Deserialization Kotlin Android Jetpack Compose Table

I'm in the process of creating a table section in Jetpack Compose that deserializes the data from a JSON. At this point, I'm simply trying to display the data (

FileObserver not working on Android SDK 30

I am working on an android application where i have used FileObserver to get data changes on a specific folder. The folder is WhatsApp Images and whenever there

ARCORE: Sceneform 1.16 issue with rendering

I am using Sceneform 1.16 and andriod studio 4.1, I am trying to render but it is not working. Issue: activity.xml <?xml version="1.0" encoding="utf-8"?>

how to change the gradle version for all newly created flutter projects?

I'd like to change the default Gradle version in all my newly created flutter projects. Right-Now I have to change the Gradle version manually in distribution-U

How to connect my realme phone for debuging

I want to Connect my realme narzo 10a phone to Android Studio I tried many times but got error 'Adb is Unable'

Style Material Checkbox/Compound ripple color

I am trying to style CompoundButton.CheckBox using official material.io tutorial: <style name="Widget.App.CheckBox" parent="Widget.MaterialComponents.Compoun

Static variable evaluates to null at json.put()

I have a class only to store variables as keys like: public class V { public static final String SHOW_OR_FOUND = "show_or_found"; public static final in

android camera2 Api autoflash not working properly, the first picture is taken before the flash fires

I'm using camera 2 API, my project is heavily based on the archived project from google: https://github.com/googlearchive/android-Camera2Basic/ I'm starting the

java.lang.NoClassDefFoundError: Failed resolution of: Landroidx/core/view/MenuHost;

I'm making a google sign in process in my app. Whenever I open my app it crashes and gives NoClassDefFoundError I checked the logcat and found this:- ------

Touch not detected on edges when touch is held

I have an app which detects swipe on edge of the screen using an overlay view. Now I wanted to add an action which will be performed when the overlayed view is

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