As opposed to all the solutions provided here isn't
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.ICE_CREAM_SANDWICH) {
>
the wrong check?
Shouldn't it check for the targetSDKVersion instead, as Dianne mentioned?
Sth like this:
if (SystemUtils.getTargetSDKVersion(pContext) >= Build.VERSION_CODES.
> HONEYCOMB_MR1 && SystemUtils.isAndroidVersionOrHigher(Build.VERSION_CODES.
> HONEYCOMB)) {
>
/Nicolas
On Wednesday, October 10, 2012 3:44:03 AM UTC-7, tom wrote:
>
> I like this change. And have used a custom AsyncTask taken from API10 with
> the following changes for awhile now.
>
> private static final int CORE_POOL_SIZE = 1;
>
> private static final int MAXIMUM_POOL_SIZE = 1;
>
>
> ps. hope this is the correct way to get the serial execution on API<11.
>
>
>
--
--
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
---
You received this message because you are subscribed to the Google Groups
"Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.