android中几个预设的file位置

//这个是我测试的应用的包名
/data/user/0/com.example.zyj.apuzzle/
context.getCacheDir():      /data/user/0/com.example.zyj.apuzzle/cache
context.getFilesDir():      /data/user/0/com.example.zyj.apuzzle/files
context.getExternalCacheDir():        /storage/emulated/0/Android/data/com.example.zyj.apuzzle/cache
context.getExternalFilesDir(Environment.DIRECTORY_DCIM):     /storage/emulated/0/Android/data/com.example.zyj.apuzzle/files/DCIM
context.getExternalFilesDir(Environment.DIRECTORY_DOWNLOADS):     /storage/emulated/0/Android/data/com.example.zyj.apuzzle/files/Download
context.getExternalFilesDir(Environment.DIRECTORY_MOVIES):     /storage/emulated/0/Android/data/com.example.zyj.apuzzle/files/Movies
context.getExternalFilesDir(Environment.DIRECTORY_MUSIC):       /storage/emulated/0/Android/data/com.example.zyj.apuzzle/files/Music
context.getExternalFilesDir(Environment.DIRECTORY_PICTURES):     /storage/emulated/0/Android/data/com.example.zyj.apuzzle/files/Pictures
context.getExternalFilesDir(null):     /storage/emulated/0/Android/data/com.example.zyj.apuzzle/files

你可能感兴趣的:(android中几个预设的file位置)