I am showing a ProgressDialog in the onPreExecute method of an AsyncTask object and canceling the ProgressDialog in the onPostExecute
ProgressDialog
onPreExecute
onPostExecute
You can use the following code in Your Manifest