When you explicitly spawn a new thread to do work in the background, this code is not is not run on the UIThread. So what happens if the this background thread needs to do something that changes the UI?
This is what the runOnUiThread is for. it provides these background threads the ability to execute code that can modify the UI.
No comments:
Post a Comment