title: How to use camera intent to take photos multiple times
body: <p>I got a problem similar to (<a href="https://stackoverflow.com/questions/8647371/how-to-take-multiple-photos-before-dismissing-camera-intent">How to take multiple photos before dismissing camera intent?</a>)!</p>
  
  <p>how ever he used the:</p>
  
  <pre><code>Intent intent = new Intent(MediaStore.INTENT_ACTION_STILL_IMAGE_CAMERA);
  </code></pre>
  
  <p>I need to use somewhat like this:</p>
  
  <pre><code>    Intent intent = new Intent(MediaStore.ACTION_IMAGE_CAPTURE);
      for(int i=0;i&lt;2;i++){
          fileUri = getOutputMediaFileUri(MEDIA_TYPE_IMAGE);
  
          intent.putExtra(MediaStore.EXTRA_OUTPUT, fileUri);
  
      // start the image capture Intent
          startActivityForResult(intent, CAMERA_CAPTURE_IMAGE_REQUEST_CODE);
     }
  </code></pre>
  
  <p>since i need to take exactly 2 photos, preview it with the default check or x of using MediaStore.ACTION_IMAGE_CAPTURE(to remove the hassle of displaying it to an imageview, go back again to capture)</p>
  
  <p>then only go back to the main activity, knowing the data that i had taken 2 photos/saved it.</p>
  
  <p>however, when i used that for loop, it returned only the last image taken, and it resized 2 times( i have a code that resizes 25% of the original captured photo, so after the code executed, it resized to 6.25% of original(1/4 of 25%) before it returns to the main activity).</p>
  
  <p>Can someone give me light what is happening and give me a solution? Thanks a lot in advance! :D</p>
  
  <p>As much as possible, i want to use the built in camera app, since it has a lot of other functions readily available compared to having the hassle of building your own custom camera. Btw im using android jellybean. 4.1.1</p>