title: capture a photo from camera and display it in image view in another activity
body: <p>I wanna display the captured photo from camera on another activity in image view. But it has to be full quality. Please,tell me how to do it. This is my code :</p>
  
  <p>MainActivity.class</p>
  
  <pre><code> private static final int REQUEST_CAMERA = 1888;
   Intent intent = new Intent(MediaStore.ACTION_IMAGE_CAPTURE);
                  startActivityForResult(intent,REQUEST_CAMERA);
   protected void onActivityResult(int requestCode, int resultCode, Intent data) {
      super.onActivityResult(requestCode, resultCode, data);
      if (resultCode == RESULT_OK) {
       if (requestCode == REQUEST_CAMERA)
              {
                 Uri returnUri = data.getData();
                  try {
                      Bitmap bitmapImage = MediaStore.Images.Media.getBitmap(MainActivity.this.getContentResolver(),returnUri);
                      Intent i = new Intent(this,ShowCameraPhotoActivity.class);
                      i.putExtra("image",bitmapImage);
                      startActivity(i);
                  } catch (IOException e) {
                      e.printStackTrace();
                  }
  
  
              }
             }
  
                  }
  </code></pre>
  
  <p>ShowPhotoCameraActivity.class:</p>
  
  <pre><code>  ImageView showPhoto = (Imageview) findViewById(R.id.image);
     Bitmap bitmap = (Bitmap) this.getIntent().getParcelableExtra("image");
     if (showPhoto != null) {
          showPhoto.setImageBitmap(bitmap);
      }
  </code></pre>