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 } });
2.1m questions
2.1m answers
60 comments
57.0k users