Android可以写文件的目录包括哪些
阿神
阿神 2017-04-17 17:22:58
0
3
709

Android手机下可以写文件的目录除了

  • Environment.getExternalStorageDirectory()获取的路径也就是/sdcard

  • /data/data/packageName/安装包路径下

/storage/sdcard0, /mnt/sdcard 都是软链接到 /sdcard

所以Android上面除了这两个地方 还有其他地方可以写文件的吗。

ps:测试手机为nexus 5 没有外置存储卡

阿神
阿神

闭关修行中......

reply all(3)
伊谢尔伦

What do you want to do first? Can't these two places meet your file reading and writing needs? For application layer applications, there are only these two places. The nexus 5 does not have an external memory card, but it has built-in extended memory, which, like the external memory card, belongs to externalStorage.

刘奇

Generally, non-rooted mobile phones have built-in sdcard, which can definitely be written. If there is an external sdcard, this is also ok, and the one in your application installation directory is also ok. I won’t say much more after root

小葫芦

There is also /data/local/tmp

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template