How to check the photo was taken in landscape or portrait in Android?
<p>I'm a newbie in Android. I'm trying to make an application with the taking photo feature inside. The problem is the photo rotation is not right. If I take the photo in landscape mode, it will be good, but portrait the photo rotation will be wrong. My question is: can I check the photo is taken in landscape/portrait mode? Because as I checked on the logCat I can see the tag named "CameraEngine" and the it says roation: 0 or 90. It will be cool if I can get that kind of camera information by code. </p>

<p>Thank you in advance! </p>
