Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Download images in batch to warmup disk cache. #170

Open
GoogleCodeExporter opened this issue Mar 7, 2016 · 1 comment
Open

Download images in batch to warmup disk cache. #170

GoogleCodeExporter opened this issue Mar 7, 2016 · 1 comment

Comments

@GoogleCodeExporter
Copy link

It would be great to have the ability to pre-download all the images we need in 
our application to the disk cache, in order to be able to use these images 
offline.

For example, something like :
aq.fetch(List<String> urls);

It would be an awesome feature for people like me who need to start an app with 
already prepopulated disk cache to be able to use aq.id(image).image(url) in 
offline mode.

Original issue reported on code.google.com by michael....@playadz.com on 9 Dec 2013 at 10:01

@GoogleCodeExporter
Copy link
Author

My bad, after browsing the sources if found the cache(String url, long expire) 
method.

The problem is it uses the same executor as the async requests, hence if I need 
to download 900 images during the first launch, the rest of my application will 
not display any images until all are downloaded.

It would be great to have 2 different executors, one for  using with the cache 
method, and one for the rest. 

Original comment by michael....@playadz.com on 9 Dec 2013 at 4:48

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant