protected void onActivityResult(int requestCode, int resultcode, Intent data) {
super.onActivityResult(requestCode, resultcode, data);
if (requestCode == PICK_FROM_GALLERY && resultcode == RESULT_OK && data != null) {
Bundle extras2 = data.getExtras();
if ((extras2 != null)) {
Bitmap photo = extras2.getParcelable("data");
buttonGallery.setImageBitmap(photo);
这是我获取图像和显示图像按钮的代码部分。我想获取图像的URI以将其发送到数据库。
如何获取图像的URI?