Android-Universal-Image-Loader icon indicating copy to clipboard operation
Android-Universal-Image-Loader copied to clipboard

Download only over WiFi but always use cache

Open nicomott opened this issue 13 years ago • 6 comments

Because I have large pictures in a part of my app, I want to give the user an option to download these pictures only if he is using WiFi.

UIL doesn't seem to have an option for that, and it may be deliberate.

Anyway, I've implemented the connection check in my app, but I'd want at least to be able to display the picture from UIL cache if WiFi isn't available. Something like mImageLoader.displayImageFromCache(....); I don't know if this method isn't there by choice. For now, I manually check on the DiscCache if the file is there, if so I call the classic displayImage

Did I miss something ?

nicomott avatar Dec 05 '12 11:12 nicomott

https://github.com/nostra13/Android-Universal-Image-Loader/pull/113

nostra13 avatar Dec 06 '12 23:12 nostra13

There is no appropriate method and I don't plan to add it to ImageLoader Only if many people request this feature..

nostra13 avatar Dec 17 '12 20:12 nostra13

have a same request :)

yankunren avatar Apr 10 '13 06:04 yankunren

me, too

noinnion avatar Oct 22 '13 12:10 noinnion

Hello, please, is there any way how to let the UIM download the stuff ONLY on WiFi? OR How to let it displayImage ONLY from the Cache source not the URL one?

By the way, pretty cool Lib! ;-P

simontom avatar Oct 16 '15 12:10 simontom

Oh, sorry, I forgot to think a little more. The way how to do that is to extend UIL's default BaseImageDownloader.

simontom avatar Oct 20 '15 06:10 simontom