1、bitmap to uriUri uri = Uri.parse(MediaStore.Images.Media.insertImage(getContentResolver(), bitmap, null,null));
2、uri to bitmap
Bitmap bitmap = BitmapFactory.decodeStream(context.getContentResolver().openInputStream(uri));