title: Selecting image does not return to my app
body: <p>I'm accessing the gallery and camera via a seperate intent using the following code:</p>
  
  <pre><code>final Intent galleryIntent = new Intent(Intent.ACTION_GET_CONTENT);
  galleryIntent.setType("*/*");
  startActivityForResult(galleryIntent, 0);
  
  Intent intent = new Intent("android.media.action.IMAGE_CAPTURE");
  startActivityForResult(intent, 0); 
  </code></pre>
  
  <p>Now in the gallery when I select an image it returns to my home screen. When I hit back, I also return to my home screen. Same with the camera when hitting back or capture I return to the home screen. I want it to return to my previous activity after doing activities on my gallery or camera. Any ideas? Thanks!</p>