void runOnUiThreadAndWait(Runnable action)

Submits a Runnable task for execution on the UI thread and waits for the task to finish before returning.

Parameters

Name Description
action The task to submit.

Return

Nothing returned