I've got a separate thread that handles some information and needs to let the user know of an error if something comes up during its execution, so right now I'm calling runOnUIThread() in order to create a Dialog and let the user know. My question is when exactly would that happen? Do the instructions in runOnUIThread() happen as soon as it's called, or does it wait for the UI thread to finish what it's currently doing first?
I'm asking because I'll be using graphics and in order to update the screen regularly the UI thread will be taken up by a loop to update and redraw the screen as far as I know.