Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
可能重复: 使用 Java 在 Windows 上隐藏文件/文件夹
我想将文件插入 sd 卡并且文件不应该正常可见,它应该只能通过我的应用程序可见。
无法从文件浏览器中隐藏 SD 卡上的文件。但如果您有不希望 android 索引并在 avi 或 mp3 文件等媒体播放器中显示的文件,您只需要创建一个名为 .nomedia在与您的媒体文件相同的目录中。
.nomedia