zxing-android-embedded
zxing-android-embedded copied to clipboard
How to add UPC E & UPC A barcode filter in DecoratedBarcodeView?
Is this the right way? But the below code isn't working.
Collection<BarcodeFormat> formats = Arrays.asList(BarcodeFormat.UPC_A); barcodeViewNew.getBarcodeView().setDecoderFactory(new DefaultDecoderFactory(formats));
Thanks
I'm having the same issue with 9319110de8927fb4771b928eaf795e43999d8529.
My guess is the following lines are the culprits because calling decode(BinaryBitmap) cause the hints to be set to null.
https://github.com/journeyapps/zxing-android-embedded/blob/master/zxing-android-embedded/src/com/journeyapps/barcodescanner/Decoder.java#L77
If you use the default MultiFormatReader() the setting of formats works correctly.