android-zxingLibrary icon indicating copy to clipboard operation
android-zxingLibrary copied to clipboard

data 返回null

Open anzhuojinjie opened this issue 8 years ago • 4 comments

    Intent intent = new Intent(MainActivity.this, CaptureActivity.class);
    startActivityForResult(intent, 100);


    /**
     * 处理二维码扫描结果
     */
    if (requestCode == 100) {
        Log.i("123456", "11111111: ");
        //处理扫描结果(在界面上显示)
        if (null != data) {
        }else {

            //执行了这里
            Log.i("123456", "222222222: ");
        }
    }

anzhuojinjie avatar Sep 06 '17 09:09 anzhuojinjie

请问一下解决没有,我也遇到这样的问题

lp1453118604 avatar Sep 15 '17 04:09 lp1453118604

没有解决,换了bga的扫码库

anzhuojinjie avatar Sep 15 '17 09:09 anzhuojinjie

刚传输就finish 了,传输结果成功与否并没有确认,传输不如写成接口实现更加方便

bwzhny avatar Dec 15 '17 05:12 bwzhny

这个zxing需要震动权限,不给就抛异常,data也变成null

storytellerF avatar May 10 '18 14:05 storytellerF