understanding parallel Async Task in android

前端 未结 2 819
庸人自扰
庸人自扰 2020-12-20 10:14

In my application I am using Async tasks in many places, recently I am facing problem where doInBackground of the below Async task is not getting called, this is happening w

2条回答
  •  慢半拍i
    慢半拍i (楼主)
    2020-12-20 10:45

    When you are running AsyncTask multiple times, they all run in a Queue on the same thread, Thus until 1 task didn't finish, the next will NOT start.

    Because you never finish the Task...the next task will not start

    Have a look at AsyncTask video

提交回复
热议问题