Current Android Release version:
Version Code: Pie
Version: 9
API level: 28

Android: runOnUiThread ()

runOnUiThread is useful whenever you want to update UI from background thread.

Activity_Name.this.runOnUiThread (new Runnable () {
       @override
        public void run () {
               //add code to update UI 
        }
});

No comments:

Post a Comment