title: How to lock the orientation to Portrait when using intent ACTION_IMAGE_CAPTURE?
body: <p>I know I can set the orientation of the activity in the manifest, but when this activity is calling the <code>MediaStore.ACTION_IMAGE_CAPTURE</code> to open the camera and take a photo, the user can still take photos in landscape mode. Can I lock the orientation of the camera app itself to portrait?</p>
  
  <p>Here is a sample code:</p>
  
  <pre><code>Intent intent = new Intent(MediaStore.ACTION_IMAGE_CAPTURE);
  intent.putExtra(MediaStore.EXTRA_OUTPUT, Uri.fromFile(photo));
  startActivityForResult(intent, TAKE_PICTURE);
  </code></pre>
  
  <p>I would like to prevent the user from taking any landscape photos.</p>
  
  <p>Any help would be greatly appreciated.</p>
  
  <p><strong>EDIT</strong>:  Found another question on the topic that hasn't been answered: 
  <a href="https://stackoverflow.com/questions/20651019/how-to-lock-the-camera-app-orientation-called-through-intent-in-android">How to lock the camera app orientation called through intent in android?</a></p>