java.lang.IllegalArgumentException: View=DecorView@3118b6b[MainActivity] not attached to window manager code example
Example: java.lang.IllegalArgumentException: View=DecorView@5fd145b[MainActivity] not attached to window manager
@Override
public void onPause() {
super.onPause();
if ((mDialog != null) && mDialog.isShowing())
mDialog.dismiss();
mDialog = null;
}