@Override
  protected void onDestroy() {
    super.onDestroy();
    if (mCameraSourcePreview != null) {
      mCameraSourcePreview.release();
    }
    if (mOrientationEventListener != null) {
      mOrientationEventListener.disable();
    }
  }
Activity for managing barcode capture.

The detected barcode value is returned as a result from this activity. If the app doesn't have
the camera permission, it will try to request the permission.
java/com/google/android/apps/authenticator/barcode/BarcodeCaptureActivity.java