简体   繁体   English

Android系统。 如何在内部存储的根目录中创建目录

[英]Android. How to create a directory in the root of internal storage

I need to create a Folder in the root of the internal storage, in order to create/store some files with information about the apps. 我需要在内部存储的根目录中创建一个文件夹,以便创建/存储一些包含有关应用程序信息的文件。 Most solutions I found, are teaching how to create directories in external storage or in the apps directory. 我发现的大多数解决方案都在教如何在外部存储或apps目录中创建目录。

For some reason, I wish I able to create folder in the root directory of the internal storage once I launch my apps. 出于某种原因,我希望一旦启动应用程序,便能够在内部存储的根目录中创建文件夹。

As far as I know, Android security mechanism would not allow an app to manipulate file system out of its security sandbox . 据我所知,Android安全机制不允许应用程序从其安全沙箱中操纵文件系统。 Instead you can manipulate the External Storage if you request the required permission. 相反,如果您请求所需的权限,则可以操纵外部存储。

Take a look at documentation here 这里看看文档

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM