Android
手机下可以写文件的目录除了
Environment.getExternalStorageDirectory()
获取的路径也就是/sdcard
/data/data/packageName/
安装包路径下
像/storage/sdcard0
, /mnt/sdcard
都是软链接到 /sdcard
所以Android上面除了这两个地方 还有其他地方可以写文件的吗。
ps:测试手机为nexus 5 没有外置存储卡
伊谢尔伦2017-04-17 17:24:58
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.
怪我咯2017-04-17 17:24:58
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