How to limit ZBar QR code reader to only detect QR codes?

1.2k views Asked by At

I have implemented ZBar reader in my android application and are only using it to read QR codes. How can I limit ZBar to only detect QR codes?

1

There are 1 answers

0
7heViking On BEST ANSWER

I found the answer randomly an another ZBar question answer by @Sydwell

The following code solves the problem:

scanner = new ImageScanner();
// Only enable the codes your app requires
scanner.setConfig(Symbol.QRCODE, Config.ENABLE, 1);