google / cameraview

[DEPRECATED] Easily integrate Camera features into your Android app
Apache License 2.0
4.74k stars 1.03k forks source link

Exit Interface always returns 0 for Google pixel with Google camera #280

Open nayan-dhabarde opened 4 years ago

nayan-dhabarde commented 4 years ago

I am developing an application in which I capture and upload images.

What I have observed is the Camera intent is always turning the photos captured in portrait to landscape on Google Pixel running Google Camera app.

I have been through almost 20-30 searches which says the same thing, i.e. use ExifInterface or the Cursor. Using ExifInterface class is always returning 0 orientation and Cursor cannot find any value for column.

This is so annoying. This is such a basic feature, people should not have trouble with it.

In order to reproduce the issue you need to install Google camera app on the emulator and when using Camera intent select the Google camera from the bottom sheet.

I am stuck with this for a month now. Tired of working on other parts while prototyping.