Environment.getDataDirectory().getPath() : /data
Environment.getDownloadCacheDirectory().getPath() : /cache
Environment.getExternalStorageDirectory().getPath(): /mnt/sdcard
Environment.getRootDirectory().getPath() : /system
context.getCacheDir().getPath() : /data/data/com.dway/cache
context.getExternalFilesDir(null).getPath() : /mnt/sdcard/Android/data/com.dway/file
context.getExternalCacheDir().getPath() : /mnt/sdcard/Android/data/com.dway/cache
context.getFilesDir().getPath() : /data/data/com.dway/files
context.getObbDir().getPath() : /mnt/sdcard/Android/obb/com.dway
context.getPackageName() : com.dway
context.getPackageCodePath() : /data/app/com.dway-1.apk
context.getPackageResourcePath() : /data/app/com.dway-1.apk
系统一些路径定义
最新推荐文章于 2023-03-07 16:53:22 发布