I have an AsyncTask that shows a progressDialog whilst working (it calls runOnUiThread from within doInBackground to show the progress dialog).
This can be achieved by the following code fragment:
progress.setCancelable(true); progress.setCanceledOnTouchOutside(false);
progress is the ProgressDialog object...
This will enable the back button to close the dialog but prevent any touch input to do that...