How save image in Android Universal Image Loader?
Posted
by
Saeed
on Stack Overflow
See other posts from Stack Overflow
or by Saeed
Published on 2014-08-18T16:18:30Z
Indexed on
2014/08/18
16:21 UTC
Read the original article
Hit count: 157
android
In Lazy List i use this code and my image store in a folder named LazyList
ImageLoader imageLoader=new ImageLoader(context);
imageLoader.DisplayImage(url, imageView);
But in Universal Image Loader i use this
ImageLoaderConfiguration config = new ImageLoaderConfiguration.Builder(getApplicationContext())
.build();
ImageLoader.getInstance().init(config);
img = (ImageView) this.findViewById(R.id.test_id);
ImageLoader imageLoader = ImageLoader.getInstance();
imageLoader.displayImage(URL.RECIPE_IMG_URL,img);
but each time it use internet to get image and didn't store my image in any folder i aslo add .diskCache(new UnlimitedDiscCache(new File("myFolder")))
to config
but nothing store in myFolder
.Any ideas?
© Stack Overflow or respective owner