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);

 

posted @ 2015-11-27 14:45  牧之丨  阅读(1356)  评论(0编辑  收藏  举报