protected void displayFrameworkBugMessageAndExit(String message) {
        if (activity.isFinishing() || this.destroyed || finishWhenClosed) {
            return;
        }

        if (message.isEmpty()) {
            message = activity.getString(R.string.zxing_msg_camera_framework_bug);
        }

        AlertDialog.Builder builder = new AlertDialog.Builder(activity);
        builder.setTitle(activity.getString(R.string.zxing_app_name));
        builder.setMessage(message);
        builder.setPositiveButton(R.string.zxing_button_ok, (dialog, which) -> finish());
        builder.setOnCancelListener(dialog -> finish());
        builder.show();
    }
Save the barcode image to a temporary file stored in the application's cache, and return its path.
Only does so if returnBarcodeImagePath is enabled.

@param rawResult the BarcodeResult, must not be null
@return the path or null
zxing-android-embedded/src/com/journeyapps/barcodescanner/CaptureManager.java