title: stuck on image capture screen ,can't get back to onActivityResult (Android)
body: <p>I Have a activity that opens the Camera by starting ACTION_IMAGE_CAPTURE Intent:</p>
  
  <pre><code>Intent intent = new Intent(
              android.provider.MediaStore.ACTION_IMAGE_CAPTURE);
  
      SimpleDateFormat dateformat = new SimpleDateFormat("ddMMyy");
  
  
      File photo1 = new File(Environment
              .getExternalStorageDirectory(), imageName);
      intent.putExtra(MediaStore.EXTRA_OUTPUT, Uri.fromFile(photo1));
      startActivityForResult(intent, 5);
  </code></pre>
  
  <p>After starting this intent it opens the image capture screen and sometimes after clicking on the capture button it doesn't return to my app (onActivityResult) it enforce me to take an image another time again, and it doen't close this screen only if i hit the back button.</p>
  
  <p>I put a break point in OnActivityResult when debugging and it doen't stop in this method.</p>