Save Image To Sdcard From Imageview
I have listview having customized some textview and one imageview. When I long click on item I have store that item information to the database but the question is how to store ima
Solution 1:
No Need to extra process, Using this example it'll will care for future usage also for same URL
of image. This will get from the cache directory if the image found that use that image otherwise download it and then use it.
Solution 2:
If you use Prime the caching will be transparent, when you request the image again it will grab it from a memory cache if available or a disk cache automatically. It also is really easy to get images with.
Solution 3:
You can save your bitmap which you get via Bitmap bitmap=memoryCache.get(url);
using save-file-to-sd-card.
You can also get the bitmap from the ImageView(if you want) like:
//say your ImageView object is i;
i = (ImageView) findViewById(R.id.img);
Drawabled= i.getBackground();
Bitmapbitmap= ((BitmapDrawable)d).getBitmap();
Post a Comment for "Save Image To Sdcard From Imageview"