This has me stumped, I was using this in Android 2.1-r8 SDK:
ProgressDialog.show(getApplicationContext(), ....);
and also in
The reason I think is that ProgressDialog
is attached to the activity that props up the ProgressDialog
as the dialog cannot remain after the activity gets destroyed so it needs to be passed this
(ActivityContext) that also gets destroyed with the activity whereas the ApplicationContext remains even after the activity gets destroyed.