Android的如何从应用程序文件夹复制数据限制用户..? [英] Android How to restrict user from copying data from Application Folder..?

查看:160
本文介绍了Android的如何从应用程序文件夹复制数据限制用户..?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是新来的Andr​​oid,在我的项目我得到了用户不应该被给予机会在应用程序文件夹复制图像和视频到电脑,使他们无法重现的要求。

I'm new to Android and in my Project I got the requirement that the user should not be given a chance to copy images and videos in the application folder to the PC so that they cannot be reproduced.

只有应用应当具有访问存储在App文件夹中的图像和视频的机会。

Only the App should have the chance to access the images and videos stored in the App folder.

推荐答案

您应该使用<一个href=\"http://developer.android.com/reference/android/content/Context.html#getDir%28java.lang.String,%20int%29\"相对=nofollow> Context.getDir()私营模式,但请记住,这将是存储在手机(可在空间的限制)的内部存储器。

You should use Context.getDir() in private mode but keep in mind that this will be stored in the internal memory of the phone (Which could be limited in space).

这篇关于Android的如何从应用程序文件夹复制数据限制用户..?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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