@Override
    protected void onSaveInstanceState(Bundle outState) {
        super.onSaveInstanceState(outState);
        capture.onSaveInstanceState(outState);
    }
Override to use a different layout.

@return the DecoratedBarcodeView
zxing-android-embedded/src/com/journeyapps/barcodescanner/CaptureActivity.java