简体   繁体   English

使图像不出现在Android图库中

[英]Making Images not Appear in Android Gallery

I'm working on an app where I will be taking images and displaying them in that app. 我正在开发一个应用程序,我将在该应用程序中拍摄图像并显示它们。 However I notice that those images show up in their own category of the gallery when the gallery is opened. 但是我注意到,当画廊打开时,这些图像会显示在他们自己的画廊类别中。 I'm wondering if it's possible to take photos with the existing camera and keep them hidden from the gallery. 我想知道是否可以用现有的相机拍照并将它们隐藏在画廊中。 Perhaps its something I have to add to the intent. 也许是我必须添加到意图中的东西。

尝试在存储图像的任何位置创建.nomedia文件,然后清除应用程序的数据以删除这些图像,以便图库不会缓存它们

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM