Android 获取系统默认路径
2016-10-12 01:54
405 查看
转自:http://www.cnblogs.com/ycxyyzw/p/3951737.html
Environment.getDataDirectory().getPath() : /data
Environment.getDownloadCacheDirectory().getPath() : /cache
Environment.getExternalStorageDirectory().getPath(): /mnt/sdcard
Environment.getRootDirectory().getPath() : /system
Context.getCacheDir().getPath() : /data/data/com.zhd/cache
Context.getExternalCacheDir().getPath() : /mnt/sdcard/Android/data/com.zhd/cache
Context.getFilesDir().getPath() : /data/data/com.zhd/files
Context.getObbDir().getPath() : /mnt/sdcard/Android/obb/com.zhd
Context.getPackageName() : com.zhd
Context.getPackageCodePath() : /data/app/com.zhd-1.apk
Context.getPackageResourcePath() : /data/app/com.zhd-1.apk
Environment.getDataDirectory().getPath() : /data
Environment.getDownloadCacheDirectory().getPath() : /cache
Environment.getExternalStorageDirectory().getPath(): /mnt/sdcard
Environment.getRootDirectory().getPath() : /system
Context.getCacheDir().getPath() : /data/data/com.zhd/cache
Context.getExternalCacheDir().getPath() : /mnt/sdcard/Android/data/com.zhd/cache
Context.getFilesDir().getPath() : /data/data/com.zhd/files
Context.getObbDir().getPath() : /mnt/sdcard/Android/obb/com.zhd
Context.getPackageName() : com.zhd
Context.getPackageCodePath() : /data/app/com.zhd-1.apk
Context.getPackageResourcePath() : /data/app/com.zhd-1.apk
相关文章推荐
- Android 获取系统默认路径 .
- android 获取系统默认路径
- android 获取系统默认路径
- android 获取系统默认路径
- android 获取系统默认路径
- Android 获取系统默认路径
- android 获取系统默认路径
- android 获取系统默认路径
- Android获取系统外置存储卡路径的方法
- android系统通过图片绝对路径获取URI的三种方法
- Android各种机型,各种系统版本,如何获取外置SDCard路径
- 获取Android系统所有内置SD卡以及外置SD卡路径
- 获取android系统默认证书KeyStore
- android 获取一些系统指定路径的方法整理
- 获取Android系统中全部图片的路径
- android 调用系统相机并获取图片路径
- Android学习之系统默认路径
- android系统通过图片绝对路径获取URI的三种方法
- 获取android系统外置存储卡路径的方法
- Android获取系统外置存储卡路径的方法