runOnUiThread is useful whenever you want to update UI from background thread.
Activity_Name.this.runOnUiThread (new Runnable () {
Activity_Name.this.runOnUiThread (new Runnable () {
@override
public void run () {
//add code to update UI
}
});
No comments:
Post a Comment