首先框架基本用法:
代码语言:javascript复制new IntentIntegrator(StoreEditActivity.this)
.setPrompt(getResources()
.getString(R.string.qrcode_tip))
.initiateScan();
发现识别不出vx的彩色二维码,解决方案增加方法
代码语言:javascript复制.addExtra(Intents.Scan.SCAN_TYPE, Intents.Scan.MIXED_SCAN)
最终:
代码语言:javascript复制new IntentIntegrator(StoreEditActivity.this)
.setPrompt(getResources()
.getString(R.string.qrcode_tip))
.addExtra(Intents.Scan.SCAN_TYPE, Intents.Scan.MIXED_SCAN)
.initiateScan();
解决来源:
https://github.com/journeyapps/zxing-android-embedded/issues/693