I want to use the DiskLruCache from Jake Wharton in my Android app based on API Level 7+. I would use it in my ListView to Cache downloaded images on SdCard but i didn’t understood the usage of this library.
Can anybody show me a example of how to get Bitmaps from this Cache or put Bitmaps in the cache? ( key = filePath, value = Bitmap )
I found no method to get the Value of this Snapshot Object.
Thanks for every help.
I used getBitmap() in the sample someone posted here.
This is the answer you’re looking for under a different title. You will have to create a Utils for some of the code but it’s pretty straightforward.
Good Luck!
Using DiskLruCache in android 4.0 does not provide for openCache method