The orientation of the image captured is causing problems across devices in Android. In some devices the orientation of the image captured is not recorded in the EXIF while in other devices it is recorded. Is there a proper demarcation as to which devices do and which do not?
So, in case the device does not add the image orientation, I use the following code to resolve it http://developer.android.com/reference/android/hardware/Camera.Parameters.html#setRotation%28int%29
But, now in those devices that do support adding the orientation/rotation of the image automatically the above image rotates it further more and the orientation goes wrong again.
Can you please tell if there is a generic code to handle it, or to disable the inbuilt rotation information, or if I can distinguish based on the API Level or absolutely any other way to handle this issue?
Thank you