android 应用中文件夹路径的获取

//  /storage/emulated/0
MyLogUtils.e(Environment.getExternalStorageDirectory().getAbsolutePath());
//  /storage/emulated/0/Music
MyLogUtils.e(Environment.getExternalStoragePublicDirectory(Environment.DIRECTORY_MUSIC).getAbsolutePath());
//  /data
MyLogUtils.e(Environment.getDataDirectory().getAbsolutePath());
//  /data/cache
MyLogUtils.e(Environment.getDownloadCacheDirectory().getAbsolutePath());
//  /system
MyLogUtils.e(Environment.getRootDirectory().getAbsolutePath());

//  /storage/emulated/0/Android/data/com.jiaqiang.device.message/files
MyLogUtils.e(context.getExternalFilesDir("").getAbsolutePath());
//  /storage/emulated/0/Android/data/com.jiaqiang.device.message/cache
MyLogUtils.e(context.getExternalCacheDir().getAbsolutePath());
//  /data/user/0/com.jiaqiang.device.message/cache
MyLogUtils.e(context.getCacheDir().getAbsolutePath());
//  /data/user/0/com.jiaqiang.device.message/files
MyLogUtils.e(context.getFilesDir().getAbsolutePath());
//  /data/user/0/com.jiaqiang.device.message/app_demo
MyLogUtils.e(context.getDir("demo",MODE_PRIVATE).getAbsolutePath());