1

我的应用程序正在 SD 卡上的 AppImages 目录中保存一些图像

内置图库应用程序正在检测这些图像并将它们显示在图库中。

是否可以隐藏这些图像并仅对我的应用程序可见?

谢谢

4

3 回答 3

4

Rename the directory from AppImages to .AppImages. The dot "hides" this folder from the system.

On an unrelated note, consider naming the folder something less generic to lessen the chance that it already exists.

于 2012-06-11T09:02:30.037 回答
2

You could stop the gallery from picking up your apps photos by putting a .nomedia file in the folder where they are stored. This will stop the gallery app from detecting your images, but a user still can open them in the gallery by using a file manager to navigate to the directory and selecting an image.

Hiding the images from both the user and the gallery is not possible, AFAIK.

于 2012-06-11T09:02:59.087 回答
0

无需隐藏图片..只需将扩展名重命名为“.txt”,它将显示图片不受支持的文件

于 2013-10-24T12:31:55.793 回答