Android AsyncTask - Order of execution

前端 未结 6 1218
醉酒成梦
醉酒成梦 2020-12-30 07:58

I am facing an issue regarding the order of exection of AsyncTasks.

My question is :

Assuming I have 2 implementations of AsyncTask : MyAsyncTask1

6条回答
  •  旧时难觅i
    2020-12-30 08:55

    AsyncTask execute in background so in your case first code will start task1 and immediately start task2.. so call

    new MyAsyncTask2 ().execute ();
    

    this in to postexecute of Task1

提交回复
热议问题