- I have an Activity with Handler (UI thread)
- I start a new topic and create handler.post (new MyRunnable ()) - (new workflow)
The Android documentation says about the post method: "Causes Runnable r to be added to the message queue. Runnable will be launched on the thread this handler is bound to."
The handler is bound to the user interface thread. How can an android run runnable on the same user interface thread without creating a new thread?
Will a new thread be created using Runnable from handler.post ()? Or will the run () method be called from the Runnable subclass?
source share