Running multiple AsyncTasks at the same time — not possible?

前端 未结 7 817
别那么骄傲
别那么骄傲 2020-11-21 13:33

I\'m trying to run two AsyncTasks at the same time. (Platform is Android 1.5, HTC Hero.) However, only the first gets executed. Here\'s a simple snippet to describe my probl

7条回答
  •  无人共我
    2020-11-21 13:39

    The android developers example of loading bitmaps efficiently uses a custom asynctask (copied from jellybean) so you can use the executeOnExecutor in apis lower than < 11

    http://developer.android.com/training/displaying-bitmaps/index.html

    Download the code and go to util package.

提交回复
热议问题