public void setShowMissingCameraPermissionDialog(boolean visible, String message) {
        showDialogIfMissingCameraPermission = visible;
        missingCameraPermissionDialogMessage = message != null ? message : "";
    }
If set to true, shows the specified error dialog message if camera permission is missing.
<p>
If set to false, instead the capture manager just finishes.
<p>
In both cases, the activity result is set to {@link Intents.Scan#MISSING_CAMERA_PERMISSION}
and cancelled
zxing-android-embedded/src/com/journeyapps/barcodescanner/CaptureManager.java