private void tryToStart() {
    try {
      startIfReady();
    } catch (SecurityException e) {
      Log.e(TAG, "Do not have permission to start the camera", e);
    }
  }
Check if we are is in the portrait mode or not

@return true if the we are currently in portrait mode
java/com/google/android/apps/authenticator/barcode/preview/CameraSourcePreview.java