通过zxing扫码时,获取扫码返回值常用的方法如下
IntentResult result = IntentIntegrator.parseActivityResult( requestCode, resultCode, data );
但是通过该方法,result结果一直为空,只需要去除parseActivityResult的requestCode参数即可
IntentResult result = IntentIntegrator.parseActivityResult( resultCode, data );