Fixed CalledFromWrongThreadException by using runOnUiThread.