I m using Fedor's lazy Loader Adapter for showing images on a list view.
I want to pass the image(already downloaded) of the row which is clicked to new activity. I dont want to re download the image again. How can this be done ?
I m using Fedor's lazy Loader Adapter for showing images on a list view.
I want to pass the image(already downloaded) of the row which is clicked to new activity. I dont want to re download the image again. How can this be done ?
Fedor's Code (from what i've read) uses a File Cache aswell as a Memory Cache to Cache the downloaded files...
So Simply use
FileCache fileCache = new FileCache(context);
File bmp = fileCache.getFile(url);
//convert the File object to a Bitmap object using BitmapFactory (see decodeFile() method in ImageLoader)
and
MemoryCache memCache = new MemoryCache(context);
Bitmap bmp = memCache.get(url)
Note : If both return null
, then you'll have to download it again.