title: No callback (onActivityResult) from startActivityForResult
body: <p>I'm trying to include functionality in an app for taking photos. The camera activity comes up, I can take a photo and tap the checkmark for using the photo just taken, but the app never receives it because onActivityResult is never called.</p>
  
  <p>Here is the code that activates the camera activity:</p>
  
  <pre><code>    Intent takePictureIntent = new Intent(MediaStore.ACTION_IMAGE_CAPTURE);
      if (takePictureIntent.resolveActivity(getPackageManager()) != null) {
          startActivityForResult(takePictureIntent, REQUEST_IMAGE_CAPTURE);
      }
  </code></pre>
  
  <p>REQUEST_IMAGE_CAPTURE is set to 1.</p>
  
  <p>The onActivityResult method that is never called looks like this:</p>
  
  <pre><code>@Override
  protected void onActivityResult(int requestCode, int resultCode, Intent data) {
     ...
  }
  </code></pre>
  
  <p>The app has only one activity, the main activity.
  I have tried different settings in the manifest, with no luck.</p>