title: Android - Not able to detect a QR code with zxing library
body: <p>I'm developing an Android App to scan QR codes, using zxing library as follow:</p>
  
  <p>First the integration of the library in the Gradle:</p>
  
  <pre><code>implementation 'com.journeyapps:zxing-android-embedded:3.0.2@aar'
  implementation 'com.google.zxing:core:3.3.0'
  </code></pre>
  
  <p>Secondly the activity in the AndroidManifest.xml:</p>
  
  <pre><code>&lt;activity
              android:name="com.journeyapps.barcodescanner.CaptureActivity"
              android:screenOrientation="fullSensor"
              tools:replace="screenOrientation" /&gt;
  </code></pre>
  
  <p>Then the code to scan the QR code when the button is pressed:</p>
  
  <pre><code>IntentIntegrator integrator = new IntentIntegrator(getActivity());
  integrator.setPrompt("Start scanning");
  integrator.setDesiredBarcodeFormats(IntentIntegrator.QR_CODE_TYPES);
  integrator.setOrientationLocked(false);
  integrator.initiateScan();
  </code></pre>
  
  <p>And finally, parse the information got from the scanner(This is never executed)</p>
  
  <pre><code>IntentResult result = IntentIntegrator.parseActivityResult(requestCode, resultCode, data);
              if(result != null) {
                  if(result.getContents() == null) {
                      Toast.makeText(getActivity(), "Cancelled", Toast.LENGTH_LONG).show();
                  } else {
                      String code = result.getContents();
                      textView.setText(code);
                  }
              } else {
                  super.onActivityResult(requestCode, resultCode, data);
              }
  </code></pre>
  
  <p>The camera is opened and looks like is scanning, but is not able to detect and read the QR code, is not returning anything.</p>