i have make one android application in that data is coming from server so it\'s time consuming process so i have created one progress dialog box..
below is my code
You are starting the asynctask every time you show your activity. So, you should cancel the task when exiting (AsyncTask.cancel(true)), or check if it is still running in the onResume method.