Android Utililty Methods Camera Facing Get

List of utility methods to do Camera Facing Get

Description

The list of methods to do Camera Facing Get are organized into topic(s).

Method

intgetFirstBackFacingCameraID()
get First Back Facing Camera ID
int lCamId = 0;
for (lCamId = 0; lCamId < Camera.getNumberOfCameras(); lCamId++) {
    Camera.CameraInfo lCameraInfo = new Camera.CameraInfo();
    Camera.getCameraInfo(lCamId, lCameraInfo);
    if (lCameraInfo.facing == Camera.CameraInfo.CAMERA_FACING_BACK)
        return lCamId;
return 0;
...