I would like to make a ProgressDialog cancelable by the back button but not by a screen tap. Currently I use setCancelable(true).
ProgressDialog
setCancelable(true)
However, in
Try this it will help you:
ProgressDialog pd = ProgressDialog.show(main.this, "", "Loading. Please wait...", true); pd.setCancelable(true);`
Use setCanceledOnTouchOutside(false).