Intent intent = new Intent(Intent.ACTION_VIEW); Uri uri = Uri.parse(MediaStore.Images.Media.insertImage(getContentResolver(), bmp, null, null)); //将bitmap转换为uri intent.setDataAndType(uri,"image/*"); startActivity(intent);
Intent intent = new Intent(Intent.ACTION_VIEW); Uri uri = Uri.parse(MediaStore.Images.Media.insertImage(getContentResolver(), bmp, null, null)); //将bitmap转换为uri intent.setDataAndType(uri,"image/*"); startActivity(intent);