Okay. In addition to the first change, try changing this line:
public static final Executor DUAL_THREAD_EXECUTOR =
Executors.newFixedThreadPool(2, sThreadFactory);
to this:
* public static final Executor DUAL_THREAD_EXECUTOR =*
* SERIAL_EXECUTOR;*
Thanks.
On Tuesday, April 16, 2013 11:35:31 AM UTC-5, tsioularisa wrote:
>
> The first comments of the asynctask declaration which is being used in
> this project and has been modified are the following:
>
>
> /**
> * *************************************
> * Copied from JB release framework:
> *
> https://android.googlesource.com/platform/frameworks/base/+/jb-release/core/java/android/os/AsyncTask.java
> *
> * so that threading behavior on all OS versions is the same and we can
> tweak behavior by using
> * executeOnExecutor() if needed.
> *
> * * There are 3 changes in this copy of AsyncTask:*
> * * -pre-HC a single thread executor is used for serial operation*
> * * (Executors.newSingleThreadExecutor) and is the default*
> * * -the default THREAD_POOL_EXECUTOR was changed to use
> DiscardOldestPolicy*
> * * -a new fixed thread pool called DUAL_THREAD_EXECUTOR was added*
> * * **************************************
> * **
> *
> *
> so this change probably will not fix the problem!
>
--
--
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.