Reputation: 707
Example I have a layout with a list and an image at the top of the list. I have CursorAdapters for both of them that load this data from a service. Since android has one UI thread and all the other background AsyncTasks run on one thread, does that mean whichever one I call first, finishes first?
Upvotes: 0
Views: 26
Reputation: 4573
Yes it does. By default AsyncTask
s go to one queue because they use serial executor. If you want them to execute in parallel you should use your own ThreadPoolExecutor
instead.
Upvotes: 2