executeOnUIThread

Utility method to execute a runnable on the Android main thread (UI thread). If the calling thread already is the main thread, immediately executes the run() method of the supplied Runnable

Parameters

r

the Runnable to execute