您的位置:首页 > 其它

11.27获取安卓系统默认路径

2014-11-27 10:18 330 查看
系统默认路径获取:

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
转载:http://www.eoeandroid.com/thread-555094-1-1.html
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: