How can I make ProgessDialog naked so that the user cannot press the back key or touch the screen outside the dialog box to reject it this?
dialog.setCancelable(false);
You need to use setCancelable for false
progressDialog.setCancelable(false);