How run two AsyncTasks in one Activity?

前端 未结 4 480
名媛妹妹
名媛妹妹 2020-12-31 20:04

I have two Activitys (mainActivity & downloadActivity) and I have 2 AsyncTasks in downloadActivity

4条回答
  •  我在风中等你
    2020-12-31 20:50

    You can override onBackPressed function in activity and finish the current activity before go to previous activity. When again you come to downloadActivity it call it's oncreate method and call first AsynctTask.

提交回复
热议问题