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

All Questions

Tagged with
0 votes
0 answers
16 views

Android Thread InputStream from web page

I have an old app in Android that just downloads the content of a web page and sends it to a Bluetooth printer. It was working fine but with the new Google restrictions to Android apps it's just ...
Carlos Garcia's user avatar
0 votes
0 answers
44 views

WaitHoldingLocks Exception

[libart.so] art::ConditionVariable::WaitHoldingLocks ANR triggered by thread waiting for a binder transaction *emphasized text* "main" tid=1 Native #00 pc 0x0000000000099ccc /apex/...
z.g.y's user avatar
  • 6,105
0 votes
0 answers
15 views

Android ONNXRuntime Multi Thread multi models

I am trying to run two different models on android device and I successfully made two different sessions and run two models. But the problem is that they are running in serialized manner which is ...
JS J's user avatar
  • 43
0 votes
0 answers
26 views

Thread refreshing ListView

Its my first program in java. Im writing simple application on Tablet. Application connect to SQL server in my laptop and get some data. At this moment i get data from SQL when i push button. public ...
Rafal S's user avatar
-1 votes
2 answers
59 views

Am I using Thread class correctly here?

private static class StopRecListenerThread extends Thread { SpeechRecognizer recognizer; StopRecListenerThread(SpeechRecognizer recognizer) { this.recognizer = recognizer; } @...
user avatar
0 votes
0 answers
28 views

My thread dies after i change activity in android studio

I currently have a bluetooth service wherein there is a thread that manages the bluetooth connection after it has been established. When i check if the thread is alive with isAlive, then i get true if ...
user24815990's user avatar
0 votes
1 answer
26 views

How to put keyword speech recognition in background from UI?

I am currently using pocketsphinx-android for a keyword speech recognition app, however, I'm dropping UI frames and the UI is acting inconsistently. I'm pretty sure I have to put the speech ...
user avatar
0 votes
2 answers
32 views

How to run music using R.raw.music1 in another thread or background?

I want to run music in background or another thread not on main thread. when i continuedly click on button and call music method then start music without any delay and without freezing main Thread. ...
Human's user avatar
  • 1
-2 votes
1 answer
57 views

Code executed inside a foreground service: one into main thread and one into a different thread

I am basically trying to understand on which threads my code is running. In theory it should all run in the foreground group since the code is inside a Service started in the foreground. Let's say I ...
zaxunobi's user avatar
  • 880
0 votes
0 answers
46 views

Android bindServiceAsUser equivalent API which runs on an executor thread

I have the current code which passes an executor thread to bindService API as below: public class SynchronousExecutor implements Executor { @Override public void execute(Runnable r) ...
smshahriar's user avatar
0 votes
0 answers
24 views

Crash video on SimpleVideoExoPlayer

Good morning, I'm having several problems playing a video with the exoplayer. More precisely, I'm trying to create an Android app to be able to deploy it on Pepper's tablet which interfaces with a ...
howtobepier's user avatar
2 votes
1 answer
51 views

Confused by suspend function in coroutines and thread

In Android, I usually see some code snippet of suspend functions like this: viewModelScope.launch { //implemented by Person1 A() } //implemented by Person2 suspend fun A() { B() } //...
JUAN CHEN's user avatar
1 vote
1 answer
666 views

How to efficiently control multiple android devices in parallel with python?

I am a computer science student in Belgium working on a project that involves simultaneously controlling multiple Android devices from a Python script. During testing, I’m encountering challenges in ...
iamarthur'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
26 views

How to update composable UI fields asynchronously

I want to achieve such flow. I have viewmodel class with StateFlow variables. I have associated @Composable fields with ViewModel variables. In ComponentActivity by setcontent I want to run a function ...
Slava's user avatar
  • 647

15 30 50 per page
1
2 3 4 5
663