1.0-1.5(API 1-3) single thread.
1.6-2.3.3 (API4-10) multi thread.
3.0+ (API 11 or up) single thread.
but if you want to have AsyncTask run on seperate thread, you can call
task.executeOnExecutor(AsyncTask.THREAD_POOL_EXECUTOR, params);
instead of task.execute(params);
then the task will run on seperate thread, and not blocked by other threads.
沒有留言:
張貼留言