title: Android: Photos force captured in Landscape mode
body: <p>Hi have built on <a href="http://developer.android.com/resources/samples/ApiDemos/src/com/example/android/apis/graphics/CameraPreview.html" rel="nofollow">Camera Preview</a>.</p>
  
  <p>Origionally it displayed a landscape preview even in portrait mode. I changed this with some extra code. However, no matter if your landscape/portrait, it always saves images in landscape mode.</p>
  
  <p>Ive also now forced it to portrait mode:</p>
  
  <pre><code>setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_PORTRAIT);
  </code></pre>
  
  <p><strong>Basically any image I take comes out in landscape. (rotates a portrait taken image).</strong></p>
  
  <p>How would I make it save photos in the orientated mode, or locked to portrait assumption?</p>
  
  <p>Ive considered taking the photo array and rotating 90 degrees. But that would require drawing the image to a bitmap, rotating and then storing back to an array. Overkill much? Unless you can rotate an image array directly?</p>