title: how to use Zxing with DecoratedBarcodeView and CaptureManager to scan only QR code?
body: <p>I call the following function to start scanning the QR code from my <code>Activity</code> which has a <code>DecoratedBarcodeView</code> in its layout.</p>
  
  <pre><code>private void openBackCamera() {
          captureManager = new CaptureManager(this, decoratedBarcodeView);
          captureManager.initializeFromIntent(getIntent(), savedInstanceState);
          captureManager.decode();
  
          CameraSettings cameraSettings = decoratedBarcodeView.getBarcodeView().getCameraSettings();
          cameraSettings.setAutoFocusEnabled(false);
          cameraSettings.setFocusMode(CameraSettings.FocusMode.CONTINUOUS);
          cameraSettings.setRequestedCameraId(Camera.CameraInfo.CAMERA_FACING_BACK);
  
          decoratedBarcodeView.pause();
          decoratedBarcodeView.getBarcodeView().setFrameRectColor(Color.WHITE);
          decoratedBarcodeView.getBarcodeView().setFramingRectSize(getSize());
          decoratedBarcodeView.getViewFinder().setVisibility(View.VISIBLE);
          decoratedBarcodeView.decodeSingle(mBarcodeResult);
          decoratedBarcodeView.resume();
      }
  </code></pre>
  
  <p>by default, it scans all kind of barcodes and I want to limit it to QR codes.</p>
  
  <p>I tried adding following lines to launch intent so they can be used by <code>captureManager</code> when I initialize it with <code>getIntent()</code> with no avail.</p>
  
  <pre><code>        intent.putExtra(Intents.Scan.MODE, Intents.Scan.QR_CODE_MODE);
          intent.putExtra(Intents.Scan.FORMATS, "QR_CODE");
  </code></pre>
  
  <p>How can I limit my setup to scan only QR codes?</p>