title: How to disable the back button when the alert box is on the screen
body: <p>I used onKeyDown function in the activity.....but when back button
  button is clicked it first cancels the dialog box and goes to our
  activity...I want both either both activity and dialog box closed when
  clicking the back button or disable the back button when the dialog
  box is shown...</p>
  
  <p>can any one suggest any solutions for this....</p>
  
  <p>Thanks in advance,</p>
  
  <hr>
  
  <p><strong>Update</strong></p>
  
  <p>Hello Thanks for your answer.
  The <code>progressDialog</code> with <code>.setCancelable(false);</code> is working fine.</p>
  
  <p>But here I want different thing. 
  When the progress dialog is running then i will press the BACK key and i want to show an alert dialog so that the user can notify that the progress is running.</p>
  
  <p>Is there any solution about it?</p>
  
  <p>Please help me.</p>
  
  <p>Thanks in advance.</p>