Android常用记录:Environment获取路径大全
Posted Jason_Lee155
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Android常用记录:Environment获取路径大全相关的知识,希望对你有一定的参考价值。
(可能随时更新)
android常见的调用api显示的路径:
Environment.getExternalStorageState :mounted
Environment.getDownloadCacheDirectory().getPath() :/cache
Environment.getDataDirectory().getPath() :/data
Environment.getExternalStorageDirectory().getPath() :/mnt/sdcard
Environment.getExternalStoragePublicDirectory().getPath() :/mnt/sdcard/Pictures
Environment.getRootDirectory().getPath() :/system
Environment.getDownloadCacheDirectory().getAbsolutePath() :/cache
Environment.getDataDirectory().getAbsolutePath() :/data
Environment.getExternalStorageDirectory().getAbsolutePath() :/mnt/sdcard
Environment.getExternalStoragePublicDirectory().getAbsolutePath() :/mnt/sdcard/Pictures
Environment.getRootDirectory().getAbsolutePath() :/system
以上是关于Android常用记录:Environment获取路径大全的主要内容,如果未能解决你的问题,请参考以下文章
Android内外存储分区&常用存储目录,getExternalStorageDirectory获取的是storage/emulated/0/
Android中Environment与StatFs获取系统/SDCard存储空间大小
Android Environment.getExternalStorageDirectory() 获取的是内部存储还是外部存储?
Android Environment.getExternalStorageDirectory() 获取的是内部存储还是外部存储?