Calling an AsyncTask from another AsyncTask

后端 未结 4 512
一向
一向 2020-12-05 17:41

At a certain point of my AsyncTask, after some validations have been done, I need to spawn off another thread to do some other work. So I\'d like two background threads at t

4条回答
  •  生来不讨喜
    2020-12-05 18:04

    If you are looking for a mechanism of executing multiple async tasks, from 3.0 and above it supports a method called executeOnExecutor which will allow you to schedule tasks in parallel on a pool of thread managed by Async Task.

提交回复
热议问题