Android 使用 .nomedia 文件夹保存私有媒体文件
Android About 258 words问题
程序中的缓存文件在相册、音乐播放器中显示。
解决方案
如果你希望自己应用生成的数据不被媒体库扫描到,应该在生成数据的文件夹下创建一个名为.nomedia的隐藏文件,避免出现一些无意义的文件也被媒体库扫描到的情况,比如App的缓存图片在相册中显示、宣传视频在视频播放器中显示、音效在音乐播放器中显示等。
参考链接
https://developer.android.google.cn/guide/topics/data/data-storage.html?hl=zh-cn#SavingSharedFiles
Views: 7,356 · Posted: 2019-04-09
———         Thanks for Reading         ———
Give me a Star, Thanks:)
https://github.com/fendoudebb/LiteNote扫描下方二维码关注公众号和小程序↓↓↓
Prev Post
Next Post
Today In History
- React ECharts 添加事件后控件多次绘制导致闪烁多次 Views: 21 · Posted: 2026-04-07
- Spring Boot OpenFeign 配置 HTTPS 客户端证书 Views: 2,443 · Posted: 2024-04-07
- VSCodium 代替 VS Code Views: 4,194 · Posted: 2023-04-07
- GitHub 提交了生产环境账号密码撤销办法 Views: 2,843 · Posted: 2022-04-07
- Java 中的锁 ReentrantLock Views: 2,872 · Posted: 2021-04-07
- Spring Boot 中的 ApplicationRunner 和 CommandLineRunner Views: 4,611 · Posted: 2020-04-07
- MySQL 命令行纵向打印 Views: 3,644 · Posted: 2019-04-07
- MySQL 存储 IP 地址 Views: 4,263 · Posted: 2019-04-07
- MySQL 字符串拼接 Views: 4,924 · Posted: 2019-04-07
- SQL 删除重复记录且保留一条 Views: 2,969 · Posted: 2019-04-07
- MySQL 查询重复数据 Views: 3,226 · Posted: 2019-04-07
- MySQL 自动更新时间戳及默认时间戳 Views: 6,815 · Posted: 2019-04-07
- MySQL 查询冗余索引 Views: 4,172 · Posted: 2019-04-07
- Ubuntu 系统升级 MySQL 版本 Views: 4,069 · Posted: 2019-04-07
- MySQL 查看运行的是哪份配置文件 Views: 3,824 · Posted: 2019-04-07
- MySQL 严格模式引起的问题 Views: 2,624 · Posted: 2019-04-07
- MySQL 最后一次查询花费时间 Views: 4,233 · Posted: 2019-04-07
- MySQL 查看配置文件路径 Views: 4,590 · Posted: 2019-04-07
- MySQL 时间相差了 13 小时 Views: 3,933 · Posted: 2019-04-07
- MySQL server has gone away Views: 3,919 · Posted: 2019-04-07
- MySQL 存储 Emoji 表情 Views: 2,771 · Posted: 2019-04-07
- MySQL 查看数据储存引擎 Views: 2,547 · Posted: 2019-04-07
- MySQL 查看有多少个连接 Views: 3,379 · Posted: 2019-04-07
- MySQL 数据库设置 root 密码 Views: 2,664 · Posted: 2019-04-07
- MySQL 开启日志 Views: 2,884 · Posted: 2019-04-07
- MySQL 事务 Views: 3,147 · Posted: 2019-04-07
- MySQL 视图 Views: 3,428 · Posted: 2019-04-07
- MySQL 内置函数之时间函数 Views: 3,263 · Posted: 2019-04-07
- MySQL 内置函数之数学函数 Views: 3,272 · Posted: 2019-04-07
- MySQL 内置函数之字符串函数 Views: 3,685 · Posted: 2019-04-07
- MySQL 外键 Views: 3,514 · Posted: 2019-04-07
- MySQL 分页 Views: 2,928 · Posted: 2019-04-07
- MySQL 排序 Views: 2,450 · Posted: 2019-04-07
- MySQL 分组 Views: 3,066 · Posted: 2019-04-07
Browsing
Refresh
Loading...
- Spring Security OAuth2 Client 自定义配置 Views: 1835
- 软考-系统架构设计师:大数据 Views: 2746
- JVM:垃圾标记阶段算法之可达性分析法 Views: 2185
- Keepalived + Nginx 搭建高可用负载均衡服务器 Views: 5542
- Docker 容器没有 ps pidof 查看进程命令解决办法 Views: 4408
- minikube SSH 不能使用命令行快捷键解决方法 Views: 2597
- Java VisualVM 排查内存泄漏 Views: 3314
- JavaScript Failed to execute 'requestFullscreen' on 'Element': API can only be initiated by a user gesture. Views: 9508
- ECharts series line symbolSize 设置节点图形大小 Views: 224
- nginx: [emerg] unknown directive "if($request_uri" in Views: 9728