How to call Main thread from secondary thread in Android?
The simplest way is to call runOnUiThread(...) from your thread
activity.runOnUiThread(new Runnable() { public void run() { ... do your GUI stuff } });
548k questions
547k answers
4 comments
86.3k users