-
Notifications
You must be signed in to change notification settings - Fork 23
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unable to scan normal barcodes except QR codes. #9
Comments
By default it supports only certain types of codes. Start the activity like this to use 1D bar codes alone new ZxingOrient(MainActivity.this).initiateScan(Barcode.ONE_D_CODE_TYPES); To use 2D barcodes alone new ZxingOrient(MainActivity.this).initiateScan(Barcode.TWO_D_CODE_TYPES); To detect specific barcodes types only new ZxingOrient(MainActivity.this)
.initiateScan(new Collections.unmodifiableList(Arrays.asList("QR_CODE", "DATA_MATRIX","UPC_A", "UPC_E", "EAN_8"))); For other barcode types have a look into Barcode.java |
2D barcodes' code snippet is working perfectly, only 1Ds' code is not working and barcodes are not getting detected. |
can you post some details about your phone model and the code you used if possible |
As mentioned in the code given here, I made a switch case like this for 1D scan: |
Could not use the code to scan normal "barcodes" instead of QR codes.
The text was updated successfully, but these errors were encountered: