Context.getExternalFilesDirs 这个方法 returns the absolute paths to application-specific directories. Some individual paths may be null if that shared storage is not currently available. The first path returned is the same as getExternalFilesDir(String).
也就是说 files[0].getAbsolutePath() 可能会产生 NPE
Context.getExternalFilesDirs
这个方法 returns the absolute paths to application-specific directories. Some individual paths may be null if that shared storage is not currently available. The first path returned is the same as getExternalFilesDir(String). 也就是说files[0].getAbsolutePath()
可能会产生 NPE