Friday, April 20, 2012

Re: [android-developers] AsyncTask in Android 4.0

On Fri, Apr 20, 2012 at 5:24 PM, Dianne Hackborn <hackbod@android.com> wrote:
> Yes if your targetSdkVersion is >= 12, then as of that release the default
> executor is serial.

Bingo! It's the targetSdkVersion that's controlling the behavior.
Looking at the AsyncTask source code, I can't quite see how that's
happening, but at least I can confirm the results.

Though for me, the serialized behavior does not kick in until a
targetSdkVersion of 13 -- 12 still gives me parallel operation.

Thanks for the clarification!

--
Mark Murphy (a Commons Guy)
http://commonsware.com | http://github.com/commonsguy
http://commonsware.com/blog | http://twitter.com/commonsguy

_The Busy Coder's Guide to Android Development_ Version 3.7 Available!

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

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate