On Friday, April 20, 2012 12:31:01 PM UTC-7, Kostya Vasilyev wrote:
>
> The default, starting with 4.0, is to use the serial executor:
>
>
> https://github.com/android/platform_frameworks_base/blob/master/core/java/android/os/AsyncTask.java#L192
>
> But there is also an way to explicitly use the thread pool executor:
>
>
> https://github.com/android/platform_frameworks_base/blob/master/core/java/android/os/AsyncTask.java#L536
>
> i.e.:
>
> new MyAsyncTask(....).executeOnExecutor(AsyncTask.THREAD_POOL_EXECUTOR, 
> ....);
>

It's not quite so easy for a project that wants to run on pre 3.0 
platforms. If you have an elegant solution for that, it will save me some 
time.

Nathan 

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to