先做摄像头权限申请,然后ZxingUtil.getInstance().decode(MainActivity.this);返回结果在
" @Override<br> protected void onActivityResult(int requestCode, int resultCode, Intent data) { super.onActivityResult(requestCode, resultCode, data); if (requestCode == DecodeActivity.REQUEST_CODE_DECODE && requestCode == RESULT_OK) { String stringExtra = data.getStringExtra(DecodeActivity.DECODE_RESULT); Log.e("", "结果:" + stringExtra); } }
"
-
Notifications
You must be signed in to change notification settings - Fork 1
chfdeng/SimpleZxing
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
二维码生成、条形码、二维码扫描的简单封装(此库仅做练手使用)
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published