Android HTC phone with two rear cameras

210 Views Asked by At

I'm trying to select the rear camera in HTC phones but in the API I have only two cameras: CAMERA_FACING_FRONT, CAMERA_FACING_BACK. When I call the open() with CAMERA_FACING_BACK, I get the camera that I don't want (lower resolution than the other one).

Which id should I use to open the other rear camera?

1

There are 1 best solutions below

1
On BEST ANSWER

You cannot select the camera directly.

You should open the camera with CAMERA_FACING_BACK and set a picture size (it has 27 possible different sizes!).

Accordingly with picture size you set to the software camera, one of hardware cameras will be the chosen one.