title: how to disable home button key?
body: <p>i have done a app..while exiting the app i made password to enter while exiting i using alert dialog method.But when the alert dialog button is appear that movement while press home button the app is coming to home screen.. i want that movement when press home key should disable.</p>
  
  <p>I try this code its work when press home key press it won't go to home screen.But when it open in alert dialog mode while press on home key it going to home screen</p>
  
  <pre><code> @Override
   public void onAttachedToWindow()
   {  
          this.getWindow().setType(WindowManager.LayoutParams.TYPE_KEYGUARD);     
          super.onAttachedToWindow();  
   }
  </code></pre>