How to retrieve images from cache memory?
I am using picasso library for loading images .In default picasso, It uses
internal cache memory for loading images.But as per my app configuration
,i have to use external cache memory(Cache on Disk). so i used this code
for Cache on Disk
File httpCacheDir = new
File(getApplicationContext().getExternalCacheDir(),"http");
long httpCacheSize = 10 * 1024 * 1024; // 10 MiB
HttpResponseCache.install(httpCacheDir, httpCacheSize);}
Picasso is flexible. So now it caches images in external Sd card..
The caches is stored in sdcard/android/data/packagename/cache/http The
caches are stored in ".1" ,".0". formats so i just opened them and changes
into ".1" to ".jpg".it gives exact images what i need. But how to do in
programatically? but picasso itself caches my memory in to my app for
loading image into imageview.but i have to download images from cache
memory..any help?
Wednesday, August 28, 2013
Subscribe to:
Post Comments (Atom)
0 comments:
Post a Comment