[英]Restrict access to a new created folder to only my android app
In android, I created a new folder (if not existing) for my app whenever the app is installed. 在android中,无论何时安装该应用程序,我都会为我的应用程序创建一个新文件夹(如果不存在)。
Now I want that the folder is only accessed by my app and no other gallery or file explorer app so that the folder's data is read only by my app. 现在,我希望该文件夹只能由我的应用访问,而不能由其他画廊或文件浏览器应用访问,以便该文件夹的数据仅由我的应用读取。
How can I restrict the access of that folder in above mentioned way? 如何以上述方式限制对该文件夹的访问?
Thanks in advance. 提前致谢。 :) :)
Internal Storage Store private data on the device memory. 内部存储将私有数据存储在设备内存中。
By default, files saved to the internal storage are private to your application and other applications cannot access them (nor can the user). 默认情况下,保存到内部存储器的文件是您的应用程序专用的,其他应用程序无法访问它们(用户也不能访问它们)。
http://developer.android.com/intl/es/guide/topics/data/data-storage.html http://developer.android.com/intl/es/guide/topics/data/data-storage.html
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.