Android 8.0对应XML中各种path对应的目录

paths元素 对应目录

“/”

< root-path/> 

Context.getFilesDir()

< files-path name=”name” path=”path” />

Context.getCacheDir()

< cache-path name=”name” path=”path” />

Environment.getExternalStorageDirectory()

< external-path name=”name” path=”path” /> 

Context#getExternalFilesDir(String) Context.getExternalFilesDir(null)

< external-files-path name=”name” path=”path” /> 

Context.getExternalCacheDir()

< external-cache-path name=”name” path=”path” /> 

Context.getExternalMediaDirs()(API21+)

< external-media-path name=”name” path=”path” /> 


其他有待补充

你可能感兴趣的:(Android 8.0对应XML中各种path对应的目录)