title: Image from android camera with right side up
body: <p>I'm trying to show to the user image from camera with right side up - no regard to how he holds the phone.</p>
  
  <p>My code is simple:</p>
  
  <pre><code>Intent cameraIntent = new Intent(MediaStore.ACTION_IMAGE_CAPTURE); 
  cameraIntent.putExtra("return-data", true);                 
  startActivityForResult(cameraIntent, CAMERA_RESULT);
  </code></pre>
  
  <p>Then I attach returned image to ImageView in onActivityResult.</p>
  
  <p>I know how to rotate the image, but how can I know how user hold the camera when he took a picture?</p>