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?
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.