android中如何把`content://media/external/images/media/Y`转换为`file:///storage/sdcard0/Pictures/X.jpg`?
查询内容解析器,找到文件存储地址public static String getRealPathFromUri(Context context, Uri contentUri) { Cursor cursor = null; try { String[] proj = { MediaStore.Images.Media.DATA };
翻译
2015-11-17 16:53:37 ·
145471 阅读 ·
1 评论