IndexOutOfBound Exception throwing Android

后端 未结 2 758
逝去的感伤
逝去的感伤 2021-01-28 09:52

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

2条回答
  •  有刺的猬
    2021-01-28 10:15

    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.

提交回复
热议问题