ZBar只扫描二维码/条形码
You can add these codes for ImageScanner
scanner.setConfig(0, Config.ENABLE, 0); //Disable all the Symbols scanner.setConfig(Symbol.QRCODE, Config.ENABLE, 1); //Only QRCODE is enable
scanner.setConfig(0, Config.ENABLE, 0); // scanner.setConfig(Symbol.QRCODE, Config.ENABLE, 1); scanner.setConfig(Symbol.CODE128, Config.ENABLE, 1); scanner.setConfig(Symbol.EAN13, Config.ENABLE, 1); scanner.setConfig(Symbol.UPCA, Config.ENABLE, 1);