Uri转Bitmap 方法如下:
ContentResolver resolver = getContentResolver(); //照片的原始资源地址 Uri originalUri = resultUri; try { //使用ContentProvider通过URI获取原始图片 Bitmap bitmap= MediaStore.Images.Media.getBitmap(resolver, originalUri); } catch (FileNotFoundException e) { e.printStackTrace(); } catch (IOException e) { e.printStackTrace(); }