3

I catch many crashes in crashlitycs, but I dont know - where did these crashes? enter image description here Help please, becouse its big problem for me.

MyNameIs
  • 832
  • 1
  • 8
  • 19

2 Answers2

2

Your error occur (As per my opinion or my knowledge) when dismissing progress dialog not checking whether it is showing or not. So you must have to do below:-

if (!Activity.this.isFinishing() && mProgressDialog != null) {
    if(mProgressDialog.isShowing())
    {
        pDialog.dismiss();
    }
}

So you must have to check this to all your activity or fragment.

duggu
  • 37,851
  • 12
  • 116
  • 113
2

Look at this sourcecode.

I believe it can happen if you try to close your dialog and his parent activity simultaneous. So the WindowManager tries to remove a view which does not exists any more (already removed).

Look also at this Question: java.lang.IllegalArgumentException: View not attached to window manager

Community
  • 1
  • 1
alex
  • 8,904
  • 6
  • 49
  • 75