隐藏 Android SD 卡上的视频
我正在 Android 应用程序的列表视图中从 SD 卡本地播放视频。现在我想对用户隐藏这些视频,以便他只能播放这些视频,但不应找到这些视频以从 SD 卡复制。有什么办法可以隐藏sd卡上的视频吗?
I am playing videos locally from sd card in listview in an android app. Now i want to hide those videos from user so that he can only play those videos but should not locate those videos to copy from sd card. Is there any way to hide videos on sd card?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
![扫码二维码加入Web技术交流群](/public/img/jiaqun_03.jpg)
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
您无法阻止对外部存储上的文件的访问。
您可以加密这些视频,以便只有您可以解密和解密。玩它们。
You cannot prevent access to files on external storage.
You can encrypt those videos so that only you can decrypt & play them.
不会。没有什么可以阻止用户自行翻查 SD 卡,无论是弹出并插入另一台机器,还是将手机置于大容量存储/mtp 模式。如果您不希望用户获得视频,则不要将视频存储在手机上。
No. Nothing prevents from the user rummaging around the SD card themselves either by ejecting and plugging into another machine, or putting the phone into mass storage/mtp mode. If you don't want the user to get their hands on the video, then don't store the video on the phone.
使用私人权限存储在内部存储中至少会将视频仅保留在您的应用程序中。
http://developer.android.com/guide/topics/data /data-storage.html#filesInternal
Storing on internal storage with Private permissions will at least keep the video only in your app.
http://developer.android.com/guide/topics/data/data-storage.html#filesInternal