Skip to main content
The 2024 Developer Survey results are live! See the results

All Questions

Tagged with
-1 votes
0 answers
19 views

Exception in HostObject::get for prop 'UIManager': java.util.ConcurrentModificationException - React Native

In our react native app (developed via expo with a custom dev client) we are encountering a problem. Some users have told us that very often the app crashes the first time it is launched on Android. ...
Niccolò Caselli's user avatar
0 votes
0 answers
37 views

Crash | Can't access Looper on Coroutines Dispatchers.IO

I'm executing some tasks on Coroutines Dispatchers.IO like this to achieve concurrency: fun postMessage(request: Request) { CoroutineScope(Dispatchers.IO).launch { val requestHandler = ...
Ayush Gupta's user avatar
0 votes
0 answers
49 views

How to implement a custom coroutine dispatcher for specific threading models in Kotlin?

I'm working on a Kotlin project where I need to implement a custom coroutine dispatcher. The requirement is to have a dispatcher that utilizes a specific threading model rather than the standard ones ...
D.S's user avatar
  • 9
0 votes
1 answer
77 views

Is there a way to convert the BLE GATT callback from asynchronous to synchronous?

I am new to Android development and concurrency and I am trying to build a Kotlin app, where it connects to a BLE device and reads characteristics using readCharacteristic function and use the value ...
MrMustii's user avatar
0 votes
0 answers
42 views

Getting data off of an infinitely running background thread onto the main thread?

I should start by saying that I'm still new to multithreading and concurrency in Java/Kotlin, so please bear with me. I've got a thread that is for a camera preview, that is constantly updating the ...
wleiper's user avatar
0 votes
1 answer
40 views

Neglecting the usage of Jetpack Compose Effect Handlers: Possible Consequences?

Currently reading about Jetpack Compose Side Effects & Effect Handlers: Android Documentation What doesn't become clear to me: What happens, when I don't use the described Effect Handlers (...
cluster1's user avatar
  • 5,458
0 votes
0 answers
27 views

Implementing Single Token Refresh Call with Two Networking Libraries (AsyncHttpClient & Retrofit)

I'm working with a legacy codebase that utilizes two different networking libraries: AsyncHttpClient and Retrofit. My goal is to ensure that the token refresh API is called only once during the ...
Bingotop's user avatar
0 votes
1 answer
103 views

Concurrent Connections in Okhttp

I am using okhttp in android app. I am facing a very weird issue while making multiple calls in parallel. If I make multiple calls at once when the app just started. Instead of all the calls going in ...
Vikas Godara's user avatar
0 votes
0 answers
26 views

How to run Firebase auth function in Android in Background using RX?

I want to run my check user function in background, and rx do it. but a result of callback works only in main thread. the picture down shows it Can i do all of the code with signInWith() and ...
maks099's user avatar
  • 23
0 votes
1 answer
67 views

Performing concurrent operations(Insert, retrieve data) in android sqlite

i want to ask a question related to performing concurrent operations like inserting bulk of data and retrieving data at the same time while data insert operation is going on. I have tried threads for ...
CodeX's user avatar
  • 117
-1 votes
1 answer
104 views

Error while working with getLooper() method in android

I am learning threading and concurrency in Android. I have created a basic program where the main thread sends an interrupt to the worker thread to stop the worker thread's processing. The main thread ...
Ninad Walanj's user avatar
1 vote
1 answer
561 views

How to combine and parallelize two async calls in Kotlin

If I have two async methods, i.e: subscribeToUserPhone(userId: Int, callback:(String)->Unit) and subscribeToUserStatus(userId:Int, callback:(Int)->Unit) I'd like to provide a convenience ...
Addev's user avatar
  • 32.5k
0 votes
1 answer
87 views

How to force progressbar get visible just before a background thread starts its execution?

I think this is a very simple question for many people in this community, however, I can't make this to work after several experiments; I would appreciate any help. It is JAVA-android platform: The ...
Marco Jacobo's user avatar
2 votes
1 answer
1k views

Jetpack Compose: calling action inside LauchedEffect blocks UI anyway

I am trying to do some stuff on background and then displaying it to the user, but for some reason this does not work as it should and I am not sure what I am doing wrong. It is an app with ...
WinterMute's user avatar
0 votes
0 answers
833 views

Updating stateFlow value from multiple threads

I am facing an issue wherein when updating stateFlow value in viewmodel from multiple threads, for some of the value I am not getting callback in UI. As an experiment I have tried the following Below ...
Ujjwal Kumar Maharana's user avatar

15 30 50 per page
1
2 3 4 5
27