/**
   * This method crates the camera object if camera is not disabled
   *
   * @param cameraId ID of the front or the back camera
   * @return Camera instance on success, null otherwise
   */
  private boolean openCamera(int cameraId) {
    boolean result = false;

    try {
      return mVideoCallManager.openCamera(cameraId);
    } catch (Exception e) {
      loge("Failed to open camera device, error " + e.toString());
      return result;
    }
  }