runOnApplicationLooper

Run the task in the same thread as Player.getApplicationLooper if it is necessary.

Parameters

task

The task to run.