You are perfect! It seems that it works now. Probably the multithreading 
was causing the problem. The following scenario which happened after these 
changes reinforces the multithreading problem and the guess that some 
asynctask was awake after i exit the activity. The steps of this scenario 
are the following:

1) I opened the app as usual with wifi and everything was working fine.
2) Exit activity -> turn off wifi -> activate data network
3) Images began downloading and i exit the activity after the 4th image 
downloads
4) turn wifi on - > deactivate data network
5) relaunch the activity and then the download of the images continued 
after the 4th image

so it seems that the bitmapworkertask doesn't finish every time i exit the 
activity! That probably was causing the problem! Please confirm me if you 
agree! Finally which is your suggestion about when to call clearCaches()? 
One final question, what will be the impact of these changes in the 
performance of download? 

Thank you very much for your help and your interest!

-- 
-- 
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.


Reply via email to