Removing ServerInstrumentation.runOnUiThread(). Use Instrumentation.runOnMainSync() instead.