title: android camera stretched in landscape mode
body: <p>The app I'm writing requires camera functionality.
  So to learn about how to operate the camera, I followed this script:</p>
  
  <p><a href="http://developer.android.com/resources/samples/ApiDemos/src/com/example/android/apis/graphics/CameraPreview.html" rel="noreferrer">http://developer.android.com/resources/samples/ApiDemos/src/com/example/android/apis/graphics/CameraPreview.html</a></p>
  
  <p>I have put the activity in my manifest, set the screen orientation for it on landscape mode.</p>
  
  <p>The problem I'm having is, when the camera is held sideways (so I hold my Galaxy Tab P1000 in landscape position) the view is stretched out.</p>
  
  <p>To be more specific about my script, I used an exact copy of code that Google made. It can be found in the android-sdk\samples\android-8\ApiDemos\src\com\example\android\apis\graphics\</p>
  
  <p>The file itself is called CameraPreview.</p>
  
  <p>I really have no clue why the screen looks so stretched. Of course, the format is weird and not square, but still, when using the default camera app installed on the device, it doesn't deform at all. This camera deforms the image when I hold it sideways and move the camera even a little.</p>
  
  <p><img src="https://i.stack.imgur.com/CqgAg.jpg" alt="enter image description here"></p>
  
  <p><img src="https://i.stack.imgur.com/wlNHF.jpg" alt="enter image description here"></p>
  
  <p>What I did was: I held my galaxy tab to take a picture of an object (laptop in this case) then took a picture with my phone of my Galaxy. On the Galaxy I have the camera screen open in the app i'm making. This counts for both images. One I hold sideways and one I hold in portrait view. The pics are a bit unclear but you can see that in the landscape picture, the camera has become massively wide. </p>