我正在使用zxing发布版本3.2。从git hub下载并在eclipse中导入它。导入后我将java编译器设置为1.7并添加core.jar但是库中仍有一些错误请给我建议解决它。
提前谢谢。答案 0 :(得分:0)
通过Intent使用zxing不是更容易吗? (https://github.com/zxing/zxing/wiki/Scanning-Via-Intent)
IntentIntegrator integrator = new IntentIntegrator(yourActivity);
integrator.initiateScan();
public void onActivityResult(int requestCode, int resultCode, Intent intent) {
IntentResult scanResult = IntentIntegrator.parseActivityResult(requestCode, resultCode, intent);
if (scanResult != null) {
// handle scan result
}
// else continue with any other code you need in the method
...
}