protected void closeAndFinish() {
        if (barcodeView.getBarcodeView().isCameraClosed()) {
            finish();
        } else {
            finishWhenClosed = true;
        }

        barcodeView.pause();
        inactivityTimer.cancel();
    }
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