title: How to take a picture to show in a `ImageView` and save the picture?
body: <p>I need to take a <strong>picture</strong> with the <code>camera</code>, save the <strong>picture</strong>, show in <code>ImageView</code> and when I click the <code>Imageview</code> show in <strong>fullscreen</strong> mode .</p>
  
  <p>In the future will need to send the <strong>picture</strong> to the <code>internet</code>.</p>
  
  <p>This is what I've done :</p>
  
  <pre><code>public void captureImage(View v) {
      Intent camera_intent = new Intent(MediaStore.ACTION_IMAGE_CAPTURE);
      startActivityForResult(camera_intent, CAMERA_PIC_REQUEST);
  
  }
  
  @Override
  protected void onActivityResult(int requestCode, int resultCode, Intent data) {
  
      imgView = (ImageView) findViewById(R.id.formRegister_picture);
      imgView.setScaleType(ImageView.ScaleType.CENTER_CROP);
  
      super.onActivityResult(requestCode, resultCode, data);
      switch(requestCode){
          case CAMERA_PIC_REQUEST:
              if(resultCode==RESULT_OK){
                  Bitmap thumbnail = (Bitmap) data.getExtras().get("data");
                  imgView.setImageBitmap(thumbnail);
              }
      }
  }
  </code></pre>