简体   繁体   English

将对新建文件夹的访问限制为仅我的Android应用

[英]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.

相关问题 如何访问我的Android应用中的资产文件夹? - How to access assets folder in my android app? Android-自动启动应用程序并限制对其他应用程序的访问 - Android - Autostart app and restrict access to other apps 我想限制我的webservice url可以从任何浏览器访问只有它是从Android应用程序访问 - I want to restrict my webservice url accessible from any browser only it is accessbile from android app Android尝试删除我的应用程序中的文件,但仅删除我的应用程序创建的文件 - Android trying to delete files within my app but only files which my app created that are deleted 如何以编程方式打开我在我的应用程序中在 Android 中创建的文件夹? - How to open folder which I have created in my app in Android programmatically? Android应用程序能否将其他应用程序限制为仅WiFi(无root用户)? - Is it possible for an Android app to restrict other apps to WiFi only (without root)? 我的Android应用上出现新错误 - New error on my Android app 无法从PC找到android应用创建的文件夹 - Unable to locate folder created by android app from pc 尝试打开文件夹时,使用Android Studio创建的应用程序崩溃 - App created using Android Studio crashes when attempting to open folder 仅允许我的应用访问网页 - Allowing only my app to access a webpage
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM