插入SD卡后图像未显示在图库应用中

时间:2015-10-15 13:12:33

标签: android gallery

我将多张图片保存到SD卡中,直到我重启设备才会出现在图库应用程序中。 重新启动设备后,图像可见.. 我尝试了许多链接,但没有工作。

1 个答案:

答案 0 :(得分:0)

我也面临同样的问题。你试过这个吗?

File imageFile = ...
MediaScannerConnection.scanFile(this, new String[] { imageFile.getPath() }, new String[] { "image/jpeg" }, null);
相关问题