@Override
    protected void onSaveInstanceState(Bundle outState) {
        super.onSaveInstanceState(outState);
        capture.onSaveInstanceState(outState);
    }
Custom Scannner Activity extending from Activity to display a custom layout form scanner view.
sample/src/main/java/example/zxing/CustomScannerActivity.java