title: Get image Uri + thumbnail of the picture shot with camera in Android
body: <p>I want to update an ImageView with a picture I make with the build-in Android camera.
  I use the following code:</p>
  
  <pre><code>void getPhoto() {
          Intent intent = new Intent(MediaStore.ACTION_IMAGE_CAPTURE);
          startActivityForResult(intent, TAKE_PICTURE);
      }
  </code></pre>
  
  <p>After that I acquire the photo with:</p>
  
  <pre><code>@Override
      protected void onActivityResult(int requestCode, int resultCode, Intent data) {
          if (requestCode == TAKE_PICTURE) {
              Bitmap photo = (Bitmap) data.getExtras().get("data");
              ImageView photoView = (ImageView) findViewById(R.id.photoId);
              photoView.setImageBitmap(photo);
              }
          }
  </code></pre>
  
  <p>But with this code no matter what I do I only get a thumbnail of the photo I made - my question is how can I get the Uri of the photo just made in order to work not with the thumbnail but with the original image?</p>
  
  <p>Ps. I actually need the thumbnail of the photo but I need the Uri of the original photo too.</p>