Android Delayed Execution on UI Thread

Ever need to run something on the UI thread after a short delay? Here’s an example. Create a new thread that will block for a set amount of time, then create a Runnable and send it to the Activity’s runOnUiThread() method.

Adapted from this Stack Overflow answer.