开发者

Camera pics not appearing in Gallery app

开发者 https://www.devze.com 2022-12-24 16:42 出处:网络
When 开发者_JAVA百科I take pictures using android.hardware.camera and I save them to the following location /sdcard/dcim/camera/ they don\'t appear when I launch the gallery. Is there a process for ge

When 开发者_JAVA百科I take pictures using android.hardware.camera and I save them to the following location /sdcard/dcim/camera/ they don't appear when I launch the gallery. Is there a process for getting them to show up in the gallery that I missed?

I can see my images using a file explorer and know they have been saved.


You need to run MediaScanner on the type of media that you have saved to make your changes(SDcard writes) transparent throughout the system. MediaScanner is bundled with devTools package so you can either run it manually or you can also do it via Java code(right after the write to SDcard op). Google "MediaScanner" you will find plenty of examples.

Hope that helps.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号