I have begun developing an application that requires scanning multiple types of barcodes. I have seen other posts about setting the hint for scanAllCodeTypes to true. However, I can't get the QRScanner to scan a 2D barcode at all. If I use the CodeScanner class, and call the appropriate methods, I can scan 2D barcodes and QR codes.
Can one class or the other (QRScanner/CodeScanner) be used to scan all codes with one call?
So for CodeScanner, currently I have:
CodeScanner.getInstance().scanQRCode(new ScanResult() {
to get QR codes, and:
CodeScanner.getInstance().scanBarCode(new ScanResult() {
to get barcodes.
And for QRScanner, I must do:
QRScanner.scanQRCode(new ScanResult() {
for QR codes and:
QRScanner.scanBarCode(new ScanResult() {
for barcodes.
What do I do to make pushing one button have the ability to scan any type of code?
And is there a way to simulate barcode functionality in the simulator so I don't have to keep sending builds to the server?
Thanks.