Category "android"

FutureTask in android

I'm very new to Android so maybe my question is a bit of a beginner. I want to use the futureTask method in my program, but I really do not know how to use it.

Having issue with installation

I have a project that was just completed on Android Studio, i try to run the apk package on my phone and it giving me there was an error parsing the package. An

Collect Flows in Service

So, I'm trying to collect data from flows in my Foreground service (LifecycleService) in onCreate(), but after the first callback, it is not giving new data. Th

Data reset when moving from one to another fragment using Bottom Navigation Bar

I am using bottom navigation bar dan fragment in my project. When it moved from one to another fragment, I dont want to lose the state or data How can I do it?

4003: Data item to large sending data from wear os to app

I'm developing a wear os app that needs to send a list of "MyObject" to mobile, data class MyObject( val id: String, val name: String, val locations

How to update a specific value in List<Class>?

I need to update one data in my List<Cards>. Class Cards looks like this: public class Cards implements Comparable<Cards>{ private int cardImage, ca

Dart snapshot generator failed with exit code -6

I am trying to make a Android build from Android studio for flutter app but getting below error. How can I resolve the issue? Current flutter version: 2.10.2 &#

Android UMP - Request consent always fails

I implemented consent request using UMP according to this guide. I use real device to check the implementation: fun initialize(activity: Activity) {

Where to update visible RecyclerView Items?

I have a recyclerview showing items like this: MyRecyclerView Selecting items calculates a total price from the number you see in the circle of each item, addin

flutter location permission from integration test not working

I am trying to write integration_test for my location app. I need to allow location permission from my integration_test. I have set ANDROID_SDK_ROOT in my windo

Native library (.so file) not found in resource path

I have library and I try to add my android application which is named 'abc' so I create new folder |-app |-|-src |-|-|-main |-|-|-|-jniLibs |-|-|-|-|-android-aa

Failed to start several time. Restore it by clearing its history. Android Project

I have no idea what causing the error in my android project. The error "Failed to start several time. Restore it by clearing its history." happen in some of the

How to set Exposure on Camera2 api

I want to set camera exposure.When camera starts i want to set higher values and when it stops it is set to lower value.So i used the below code.On emulator it

@Composable funck. into onClick event - Jetpack Compose

I try show AlertDialog when press a button. For AlertDialog i have a composable function - showDialog. It is clear that this function calls a dialog. I have ano

Ionic Capacitor FCM , android build failing

I am stuck at the below issue for quite some time and its not getting resolved, had searched across stack overflow, google, but nothing is working for me. There

Problem retrieving List out of the Flow while testing room database in android

I'm trying to test the insert operation in my room database. I have written the following code. @Test fun test() = runTest { val testString = "hello" dao.in

Problem retrieving List out of the Flow while testing room database in android

I'm trying to test the insert operation in my room database. I have written the following code. @Test fun test() = runTest { val testString = "hello" dao.in

Facebook Audience Network gives very low bid response. Main reason "No Facebook profile found"

I have integrated my Android app to Applovin (MAX) platform and added Facebook bidding as described on documentation. Waited several days to collect some perfor

How to build react native apps specific to an environment in nx.dev

I used nx.dev for my react native application, I have configured the 3 environments. Dev, QA, and Staging. Added productFlavors for the same. ENVFILE=.env.qa &a

Android Studio App Crash When using "Step Over" and "Step Into"

when I try to debug my app in an emulator, it can stop at a breakpoint, but when I click "Step Out" and "Step into" during debugging, the Android App will simpl