Uri ==> FilePath:
Android通过Uri转化为本地绝对路径的方案(全版本适配4.1-7.0)
FilePath ==> Uri:
- targetSdkVersion <= 23
Uri uri = Uri.fromFile(new File(filePath)); - targetSdkVersion >= 24
译:Android N不再支持通过Intent传递“file://”scheme
Uri ==> FilePath:
Android通过Uri转化为本地绝对路径的方案(全版本适配4.1-7.0)
FilePath ==> Uri: