public boolean openCamera(String cameraID){
  CameraManager mgr=(CameraManager)CurrentActivity.getSystemService(Context.CAMERA_SERVICE);
  try {
    mgr.openCamera(cameraID,CameraStatusCB,CameraHandler);
    return true;
  }
 catch (  CameraAccessException ex) {
    ex.printStackTrace();
  }
catch (  SecurityException ex) {
    ex.printStackTrace();
  }
  return false;
}

public boolean openCamera ( String cameraID ) { CameraManager mgr = ( CameraManager ) CurrentActivity . getSystemService ( Context . CAMERA_SERVICE ) ; try { mgr . openCamera ( cameraID , CameraStatusCB , CameraHandler ) ; return true ; } catch ( CameraAccessException ex ) { ex . printStackTrace ( ) ; } catch ( SecurityException ex ) { ex . printStackTrace ( ) ; } return false ; }
open camera device by its id
