保存图像从ImageView的到SD卡 [英] Save image to sdcard from imageview

查看:176
本文介绍了保存图像从ImageView的到SD卡的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经有一些定制TextView的和一个ImageView的列表视图。当我渴望点击项目我有存储项目信息数据库,但问题是如何存储图像的SD卡并存储到数据库中的相关路径。图像alread下载高速缓存现在我不想重新下载图像。

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 image in sdcard and store the relevant path to the database. The image alread download as cache now I don't want to re-download that image.

有没有办法到该图像存储到SD卡中。

Is there way to store that Image to the sdcard.

我现在用这个例子来下载列表视图 https://github.com/thest1/LazyList

I am using this example to download the images for listview https://github.com/thest1/LazyList

修改
我的解决方案

使用此示例时,无需额外的过程。只是图像的网络路径存储到数据库中,并且ImageView的传递到ImageLoader的对象与路径,它会使用缓存图像如果图像是存在于同一网址

推荐答案

没有需要额外的过程中,使用这个例子中,它会会关心未来的使用也同样网​​址形象。这会从缓存目录如果图像发现,使用这种形象,否则下载它,然后使用它。

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.

这篇关于保存图像从ImageView的到SD卡的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆