I have an application that uses a lot of AsyncTasks, the problem is that a particularly important task does not start within a couple of minutes after the execute call.
If I use the following for my ICS devices, this works:
if(Build.VERSION.SDK_INT >= 11) { myTask.executeOnExecutor( AsyncTask.THREAD_POOL_EXECUTOR, stuff ); }
in contrast to pre-ICS;
myTask.execute(stuff);
I know that ICS changed the execution of a thread to be serialized, but I cannot figure out what the thread queue is holding.
There are about 20 threads in eclipse, but I read about it, maybe this is wrong, since the debugger tends to keep the ones actually displayed.
How can I determine which threads support the serialized queue, so I donβt need to switch from default to ICS and maybe even improve the performance of devices to ICS that do not see problems because the thread pool executor is the default behavior.
Hamid source share