基于Android-Zxing-libhttps://github.com/oblivion0001/android-zxingLibrary
添加二维码图片保存
MediaStore.Images.Media.insertImage(getContentResolver(), mBitmap, "title", "description");
sendBroadcast(new Intent(Intent.ACTION_MEDIA_SCANNER_SCAN_FILE, Uri.fromFile(new File("/sdcard/Boohee/image.jpg"))));
添加权限
<uses-permission android:name="android.permission.MOUNT_UNMOUNT_FILESYSTEMS" />
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
<uses-permission android:name="android.permission.RECORD_AUDIO" />