// 把content://格式的Uri转成绝对路径,就是拼接一下字符串
Uri uri = data.getData();
path = "/storage/emulated/0/"+uri.getLastPathSegment ().substring(8);
File file = new File(path);
Uri 转 绝对路径 转 File
最新推荐文章于 2023-09-19 19:32:19 发布