Category "android"

(Anrdoid) How to prepopulate the Room database

I made a screen like the current image. Data such as A, B, C.. are currently being set by getting from the strings.xml resource file. I am now going to use Roo

Android Nearby Connection - Keeping wifi direct connection, reconnection with more than 4 devices

We're building an app for sending image payload between 1 to 4~5 devices using STAR strategy. and we are keeping the connection as much as possible, and faster

How to return multimap type with 3 tables (Android Room Databases)

I am trying to do a 3 way JOIN in my query for my Android Room Database. My tables relationships are: Table1 has a 1 to 1 relationship with Table2 Table2 has a

Combining Two Flows and add them to temporary list of StateFlow(Hot Flows)

I m getting data from two End points using flows and assigning those two list to temporary list in ViewModel. For this purpose, I'm using combine function and r

ApolloNetworkException sometime on Apollo Mutation on Android

I am using ApolloClient for Android. Sometime one mutation api failed with ApolloNetworkException. Problem is i can't generate in debugging. This exception occu

Room Database returns updated value only after app restart

i am inserting and deleting a row in room database using following methods of ViewModel class fun insert(rules: TableRules) = viewModelScope.launch { reposi

I am using viewpager2 inside a recyclerview but the images are not outputting. Why?

No matter what I do the pictures are not showing up. Even if I set the items to match parent, I still have the same problem, I've been dealing with it since the

Here Navigate SDK Issue - "These credentials do not authorize access"

I am trying to migrate my project from Premium Sdk (Android) to Navigate Sdk Edition (Android) , but I have an issue when I am trying to load map scene (Normal_

Android ViewModel's LiveData not updating the UI

I have the following fragment: todays_training_fragment.xml <?xml version="1.0" encoding="utf-8"?> <layout xmlns:android="http://schemas.android.com/ap

Flutter Web-RTC getDisplayMedia results in app crash

I want to create an app for Video-calling between 2 devices, with the possibility to share their own screen with the Flutter WebRTC plugin. I already made the v

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