@Override
    protected void onResume() {
        super.onResume();
        capture.onResume();
    }
Sample Activity extending from ActionBarActivity to display a Toolbar.
sample/src/main/java/example/zxing/ToolbarCaptureActivity.java