java.lang.IllegalArgumentException: View=DecorView@fd62335[YTVideoActivity] 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;
}