首先框架基本用法:
new IntentIntegrator(StoreEditActivity.this)
.setPrompt(getResources()
.getString(R.string.qrcode_tip))
.initiateScan();
发现识别不出vx的彩色二维码,解决方案增加方法
.addExtra(Intents.Scan.SCAN_TYPE, Intents.Scan.MIXED_SCAN)
最终:
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