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

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

问题描述

我的当前项目的一个组成部分,从URL下载图像,然后保存到SD卡。但问题是,所有的SD卡保存的图像的显示在android的图片库页面。我要的是我不希望我所有的android的画廊保存的图像。

解决方案
  1. 添加.nomedia文件。不工作?尝试第二个选项。

  2. 将文件保存到开头的文件夹。,例如, /sdcard/.myimages /

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. Add ".nomedia" file. Did not work? Try the second option.

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

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

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