Question
detect if front camera in MediaPromise
I am using MediaPromise to get an image from an Android phone's native camera interface.
I am rotating the retrieved image 90 degrees to account for front camera.
The question is: How to detect if the camera used is from the front or back?
If I can detect it is front, I will rotate the image.
I tried a if(height>width) but regardless of which camera they are all landscape.
