Hi,
2D barcode scanner not working with BarcodeScanner. But its working fine with Register app and 1D barcode scanner.
This is the code we are using
mBarcodeScanner = new BarcodeScanner(this); registerBarcodeScanner(); Bundle extras = new Bundle(); extras.putBoolean(Intents.EXTRA_LED_ON, false); extras.putBoolean(Intents.EXTRA_SCAN_1D_CODE, true); extras.putBoolean(Intents.EXTRA_SHOW_PREVIEW, false); extras.putBoolean(Intents.EXTRA_SCAN_QR_CODE, true); extras.putBoolean(Intents.EXTRA_SHOW_MERCHANT_PREVIEW, false); extras.putBoolean(Intents.EXTRA_SHOW_CUSTOMER_PREVIEW, false); extras.putBoolean(Intents.EXTRA_SHOW_CLOSE_BUTTON, false); extras.putBoolean(Intents.EXTRA_SHOW_LED_BUTTON, false); extras.putBoolean(Intents.EXTRA_START_SCAN, true); extras.putInt(Intents.EXTRA_SCANNER_FACING, 0); mBarcodeScanner.executeStartScan(extras);
Can you please check it. Is anything we have to add?