I am using asyncTasks, to load list elements with images (Just followed android's tutorial of efficiently loading bitmaps)
In DDMS, i can see upto 5 AsyncTasks being running
Now in addition i have added another AsyncTask, which performs some decoding using MediaCodec class.
Now in DDMS, i still see 5 AsyncTasks, and my image loading aynctask or decoding async task executes, not both of them.
When decoding is running, if i scroll the list, elements' images are not updated
Counterly when i launch new decoding asynctask by calling it's execute method, the decoding doesn't start, but if i scroll the list view now, the images are updated.
So is AsyncTask is limitted??
Even in listAdapter i launch an AsyncTask per getView call. I'd expecting 7 running asyncTasks (if list visible elements are 7, say), but DDMS shows only 5 asynctasks running.
Now can someone explain me what's the black magic that i can't spell?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…