如何从android画廊隐藏图像 [英] how to hide images from android gallery

查看:36
本文介绍了如何从android画廊隐藏图像的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我当前项目的一部分是从 URL 下载图像然后保存到 SDCard.但问题是所有保存在 sdcard 中的图像都显示在 android 画廊页面中.我想要的是我不想将所有保存的图像都保存在 android 库中."

One part of my current project is downloading images from URL then saving to SDCard. But the problem is all of saved images in sdcard is displayed in android gallery page. What I want is "I don't want all of my saved images in android gallery."

推荐答案

  1. 添加.nomedia"文件.不工作?尝试第二个选项.

  1. Add ".nomedia" file. Did not work? Try the second option.

将文件保存到以."开头的文件夹中,例如 /sdcard/.myimages/

Save your files to a folder that starts with ".", e.g., /sdcard/.myimages/

这篇关于如何从android画廊隐藏图像的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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