android - How to get the final status after executing multiple AsyncTasks -


i have implemented widget uses collections view (adapterviewflipper). widget downloads average 10 - 20 images , displays them on it. calling 'notifyappwidgetviewdatachanged' whenever downloads image. because of implementation, flickering 10 - 20 times. there way avoid this? have thought displaying loading icon until finishes image downloadings, have no idea how widget receives notification image downloading processes completed.

for example, if there 10 images downloaded , executed using 10 asynctask objects. how can widget determine if download processes completed (regardless of them downloaded or of them failed)

assuming in case of downloading images, can refer downloaded images @ time, maintain counter. increment counter in onpreexecute , decrement in onpostexecute of asynctasks. if counter reaches 0, call notify method.


Comments

Popular posts from this blog

android - MPAndroidChart - How to add Annotations or images to the chart -

javascript - Add class to another page attribute using URL id - Jquery -

firefox - Where is 'webgl.osmesalib' parameter? -