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 :
Why does an image captured using camera intent gets rotated on some devices on Android?
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.
specifically i used user2832184 answer here :
How can i find the orientation of a picture taken with Intent MediaStore.ACTION_IMAGE_CAPTURE?
any other solutions suggested ?
i need the native camera app full functionality so i can not switch to camera api and build everything from scratch .
also i don't mind using third party solutions to solve this issue.