Fixed CalledFromWrongThreadException by using runOnUiThread.

android.view.ViewRootImpl$CalledFromWrongThreadException: Only the original thread that created a view hierarchy can touch its views.