I created an instance of Handler in the main thread ui (mUIHandler) and from the worker thread (another thread), when I try to execute the run runable method, the run method runs almost 9 out of 10 times, but there is 1 time when it is not running.
mUIHandler.post (uiRunnable) → Does not always guarantee the execution of the launch method present in runnable?
I even added logging methods for verification and could see that the logs until the innopocation method was run, but the execution logs were not displayed.
How does mail (runnable) work inside? Does this guarantee that the ui thread (the thread with the handler) will emit this as soon as post is called?
Any help would be appreciated.
Thank!
source
share