图像保存到SD卡,不会出现在Android的画廊应用程序 [英] Image, saved to sdcard, doesn't appear in Android's Gallery app

查看:135
本文介绍了图像保存到SD卡,不会出现在Android的画廊应用程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我保存图像的SD卡,并直到我决绝的SD卡就不会出现在Gallery应用程序,然后返回。

I save an image to the sdcard and it doesn't appear in the Gallery application until I pull off the sdcard and return it back.

你有任何想法,为什么会这样呢?

Do you have any idea why is it so?

好像Gallery应用程序有一些高速缓存未更新的文件保存...

Seems like the Gallery application has some cache that isn't updated on file save...

其实,我也想开画廊中的应用刚刚保存的图像,并有与
<一个没有成功href="http://stackoverflow.com/questions/2169649/open-an-image-in-androids-built-in-gallery-app-programmatically">this是关于这个问题,我的问题。

Actually, I also want to open the just-saved image in Gallery application and have no success with that
this is my question about this issue.

推荐答案

系统扫描时,它被安装到发现新的图像(或其他)文件的SD卡。如果你使用程序添加一个文件,那么你可以使用这个类:

The system scans the SD card when it is mounted to find any new image (and other) files. If you are programmatically adding a file, then you can use this class:

<一个href="http://developer.android.com/reference/android/media/MediaScannerConnection.html">http://developer.android.com/reference/android/media/MediaScannerConnection.html

这篇关于图像保存到SD卡,不会出现在Android的画廊应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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