title: How can I edit a photo taken via the camera in my application?
body: <p>In my application I use the camera to take photos.<br>
  I use this code to start the camera Activity:</p>
  
  <pre><code>Intent intent = new Intent(MediaStore.ACTION_IMAGE_CAPTURE);
  timeStamp = new SimpleDateFormat("yyyyMMddHHmmss").format(new Date());
  File file = new File(directory, timeStamp+".png"); //name 
  Uri outputFileUri1 = Uri.fromFile(file);
  intent.putExtra(MediaStore.EXTRA_OUTPUT, outputFileUri1);
  startActivityForResult(intent, CAMERA_RESULT);
  </code></pre>
  
  <p>This code is working, but how can I edit the preview image (crop, rotate,...) before my main Activity gets the data in <code>onActivityResult()</code>?<br>
  Or how can I start the photo editor for my image from my application?</p>