Camera image rotated using camera Intent
<p>I'm having an endless problem with camera intent captured image using various devices and for some devices neither the ExifInterface nor using contentresolver mentioned here solve my issue :</p>

<p><a href="https://stackoverflow.com/questions/14066038/why-image-captured-using-camera-intent-gets-rotated-on-some-devices-in-android">Why does an image captured using camera intent gets rotated on some devices on Android?</a></p>

<p>regarding ExifInterface in some devices it always returns ExifInterface.undefined (zero) .
and as for content resolver when i query for the orientation i also get zero which is sometimes also not correct.</p>

<p>specifically i used user2832184 answer here :</p>

<p><a href="https://stackoverflow.com/questions/2284851/how-can-i-find-the-orientation-of-a-picture-taken-with-intent-mediastore-action">How can i find the orientation of a picture taken with Intent MediaStore.ACTION_IMAGE_CAPTURE?</a></p>

<p>any other solutions suggested ?</p>

<p>i need the native camera app full functionality so i can not switch to camera api and build everything from scratch .</p>

<p>also i don't mind using third party solutions to solve this issue.</p>