Skip to main content
Known Participant
June 13, 2011
Question

detect if front camera in MediaPromise

  • June 13, 2011
  • 1 reply
  • 336 views

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.

This topic is closed to new replies. Start a new post to keep the conversation going.

1 reply

Participating Frequently
June 13, 2011

I don't see anything in the exif data that distinguishes between the cameras (on my phone), so I don't think there is way to know which camera was used.