Top "Ui-thread" questions

In some frameworks there's a dedicated thread that exclusively manages all UI objects.

How to execute some code in Android UI thread async?

I'm new to Android development. I've be working on Swing and SWT for several years. Both Swing and SWT has …

android android-asynctask ui-thread
Visual Basic.NET: how to create a thread to update the UI

The usual VB way to handle a computationally heavy task is to put it in a background worker thread, while …

vb.net multithreading ui-thread applicationcontext message-pump
OperationQueue.main vs DispatchQueue.main

When you need to perform something on the main thread in the completion block of a networking task or an …

ios swift grand-central-dispatch nsoperationqueue ui-thread
Android Service and UI Thread

I have a Service running in my app.. This Service has an object for sending message to the server and …

android service ui-thread
Is a good practice create anonymous AsyncTask for parallel small known freeze process?

E.g.: you gonna do something that will take a few seconds and don't wanna freeze your UI thred, right? …

android multithreading android-asynctask anonymous-class ui-thread
Is it possible to initialize WPF UserControls in different threads?

We are developing a WPF application which will open a number of reports at the same time (just like a …

wpf multithreading ui-thread
How to update UI in coroutines in Kotlin 1.3

I'm trying to call an API and when my variables are ready, update UI components respectively. This is my Network …

android kotlin ui-thread kotlin-coroutines
How to know if this thread is a UI Thread

Is there any way on Android to know, if the thread running my code, is the UI Thread or not ? …

java android ui-thread
Android, creating a simple thread that will updated my seconds counter

Basically, I am trying to run a seconds counter and a levels counter. For every 10 seconds I want to ++level. …

android multithreading ui-thread
The method runOnUiThread(Runnable) in the type Activity is not applicable for the arguments (void)

I am trying to create a dialog from a non-UI thread, in onUtteranceCompleted(): runOnUiThread( new Thread(new Runnable() { public void …

android dialog thread-safety runnable ui-thread