I have a problem with the AsyncTask
. Sometimes the doInBackground()
method is not called after onPreExecute()
.
I know this questio
It happened to me one time because some of my tasks were blocked in the doInBackground()
(which is obviously impossible with the code sample you pasted).
The default pool size on Android for the THREAD_POOL_EXECUTOR was 5 the last time I have checked. So if you execute more than 5 tasks at the same time the next ones will wait until a task is finished.
It's the only case I known to prevent a doInBackground()
call.