protected void onProgressUpdate(Integer... progress) { if (progress[0] == 25) { parentScreen.dismissDialog(UPGRADE_DB); setImageButtonToFragments(); completed = true; notifyActivityTaskCompleted(); } if (progress[0] == 50) { Logging.Log(LOG_TAG, "Finished fixing shows"); } if (progress[0] == 75) { String message = "Updated Artists"; Toast.makeText(HomeScreen.this, message, Toast.LENGTH_SHORT).show(); } }