It is common to use a background Thread for doing network operations or long running tasks, and then update the UI with the results when needed.
This poses a problem, as only the main thread can update the UI.
The solution is to use the runOnUiThread() method, as it allows you to initiate code exe...