Tuesday, 19 April 2016

FATAL EXCEPTION: main java.lang.IllegalArgumentException: Window type can not be changed after the window is added.

onAttchedToWndow() is used to disable home button in android
but in newer version this has been resolved

so comment the below code or remove





@Override
public void onAttachedToWindow()
  {
  this.getWindow().setType(WindowManager.LayoutParams.TYPE_KEYGUARD_DIALOG);
  super.onAttachedToWindow();
  }