Have anyone worked on DiskLruCache?
http://developer.android.com/training/displaying-bitmaps/cache-bitmap.html
provides an example of using this caching method. But i observe the implementation for DiskLruCache in 4.0 source code does not have defined methods. Any idea how to use this?
You can use Picasso as image loader.
Or
This is what I did:
I created a class named DiskLruImageCache with a DiskLruCache (the one from Jake Wharton) object and the same methods in the simple implementation on the dev guide (displaying bitmaps efficiently):
Utils source code is:
Remember to put
on your AndroidManifest.xml
I figured out this way by reading this code and the javadoc from Jake Wharton’s DiskLruCache