title: Take Picture with Camera then Crop
body: <p>I want to be able to take a picture with the the camera.  I do it this way and it works:</p>
  
  <pre><code> Intent intent = new Intent(MediaStore.ACTION_IMAGE_CAPTURE);
   intent.putExtra(MediaStore.EXTRA_OUTPUT, Uri.fromFile(file));
   startActivityForResult(intent, CAMERA_REQUEST);
  </code></pre>
  
  <p>After this is successful, I want user to be able to IMMEDIATELY view image and be able to crop.</p>
  
  <p>I can do that like this:</p>
  
  <pre><code>        Intent cropIntent = new Intent("com.android.camera.action.CROP");
          cropIntent.setDataAndType(Uri.fromFile(new File(file.toString())), "image/*");
          cropIntent.putExtra("crop", "true");
          cropIntent.putExtra("aspectX", 1);
          cropIntent.putExtra("aspectY", 1);
          cropIntent.putExtra("outputX", 256);
          cropIntent.putExtra("outputY", 256);
          cropIntent.putExtra("return-data", true);
          startActivityForResult(cropIntent, CAMERA_REQUEST);
  </code></pre>
  
  <p>How do I merge these two tasks so they happen one after the other?  Do I have to have TWO <code>startActivityForResult</code>?  Should it be merged? Or should the croppin ginfo be inside the normal?</p>
  
  <pre><code>    getActivity();
      if (requestCode == CAMERA_REQUEST &amp;&amp; resultCode == Activity.RESULT_OK) {
  
  
                      // Cropping code here? another intent?
  
          iPP.setImageBitmap(BitmapFactory.decodeFile(file.toString()));
          imagePath = file.toString();
          scaleImage();
          new UploadImage().execute();
      }
  </code></pre>