It is common practice to dismiss a ProgressDialog when the activity is destroyed because when screen is rotated the activity is destroyed and created again. So it should be the Progress Dialog. But I agree I did not handle screen rotation in this example. So we'd better just have the app be portrait and do not dismiss the Dialog inside onDestroy(), in this case.