public static void doOnMainThread ( final OnMainThreadJob onMainThreadJob ) { uiHandler . post ( new Runnable ( ) { @ Override public void run ( ) { onMainThreadJob . doInUIThread ( ) ; } } ) ; }
Executes the provided code immediately on the UI Thread