Hey,
If you’re facing this error, you probably trying to show a dialog after execution of a background thread, while your Activity is about destroying.
Fortunately, we can fix this error easily.
if(!((Activity) context).isFinishing())
{
// Your progress dialog is here
}
Just an “if” solution fixed this error. Its logic is so simple, if your activity is not destroying, then show your progress dialog.
So simple right? :)
If you have any question, ask me :)