1

I am using Android's default camera in my application. After taking a photo I show it in an image view. When the photo is taken in landscape mode, it appears in image view as it should, but when the same photo is taken in portrait view, it is rotated 90 degree. Is it possible to detect the camera mode (landscape or portrait) through the code?

LukaCiko
  • 4,437
  • 2
  • 26
  • 30
Deepak Sharma
  • 4,999
  • 5
  • 51
  • 61
  • Did you look at [Camera.setDisplayOrientation()](http://developer.android.com/reference/android/hardware/Camera.html#setDisplayOrientation(int)) ? Or this one: http://developer.android.com/reference/android/hardware/Camera.Parameters.html#setRotation%28int%29 – sdabet Nov 12 '12 at 12:19
  • Duplicate of http://stackoverflow.com/questions/4465835/camera-picture-orientation-in-android ? – sdabet Nov 12 '12 at 12:23

0 Answers0