android - Is there a way get the progress of the queued downloads in Picasso? -
I am developing an app that should be able to pre-download all the images used from within the dataset So the app function is completely offline
It should download about 600 images of every 500KB (~ 300 MB total).
For this, I want to loop through all the URLs and execute Picasso Fetch () method, it will bring all the images, which is great.
The only thing that I am missing is a way to see what is the progress of all image downloads, whether Picasso's download queue Is there any way to see progress?
What have I found so far:
- In this way I inform the user that when downloaded, and what is the current situation.
- I can use a target to load in the image only it will also interpret a bitmap, which is not necessary yet and takes a lot of resources.
- I can read the cache folder to check progress. But I think this is not a clear way ...
First of all, You should not preload all the images if you use Picasso or Universal Image Loader, then you are caching both images. In this way, you are making sure (or nearly) about the OutOfMommy exception.
But if you really want to do this, check the Universal Image Loader Load Image (String Yuri, Image Loading Listener Listener)
< Code> imageLoader.loadImage (imageUri, new simple image loading listener) {@Override loading full at public zero (string image uris, view view, bitmap loaded image) {// whatever you want with bitmap}}};
Comments
Post a Comment