Can someone explain to me what exactly the UI thread is? On developer.android.com it says about the runOnUiThread function
public final void runOnUiTh
All UI drawings etc. happen in a separate thread. Its called the UIThread. If you want to make any change to UI u must use make sure it happens in UIThread's context. Easiest way of doing it is to make use of runOnUiThread
runOnUiThread