Read QR code with external QR reader

0

I have an android app to read QR code. It works fine but I want to use a QR reader (No camera, reader, it is connected by USB to the device). instead of the camera of the android device.

When I press the scan button, it does this:

   public void onClick(View view) {
           IntentIntegrator integrator = new IntentIntegrator(activity);

//integrator.setDesiredBarcodeFormats(IntentIntegrator.QR_CODE_TYPES);

integrator.setDesiredBarcodeFormats(IntentIntegrator.ALL_CODE_TYPES);
        integrator.setPrompt("Scaner");
        integrator.setBeepEnabled(false);
        integrator.setBarcodeImageEnabled(false);
        integrator.initiateScan();
        }

and then I pick up the answer in onActivityResult(...)

I point to the reader and it detects the code but it does not show me anything, with the camera of the device if it works correctly.

Greetings.

    
asked by mabts 26.01.2018 в 13:39
source

0 answers