Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
maning0303 authored Jul 28, 2016
1 parent 94d43e6 commit 731199a
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,10 @@
##使用方法:

``` java
<!--权限添加-->
<uses-permission android:name="android.permission.CAMERA" />
<uses-permission android:name="android.permission.FLASHLIGHT" />

1.跳转:
Intent intent = new Intent(MainActivity.this, CaptureActivity.class);
//是不是显示历史记录按钮
Expand Down Expand Up @@ -78,7 +82,10 @@
Bitmap qrImage = ZXingUtils.createQRImage("xxxxxx");
Bitmap qrImage = ZXingUtils.createQRCodeWithLogo("xxxxxx", logoBitmap);
```
##注意:
如果你targetSdkVersion >= 23 ,进入前先申请相机权限,不然不能扫描;


#####关于代码:
##关于代码:
例子中的代码用的是Baozi的,稍微改了点
感谢开源的大神们;

0 comments on commit 731199a

Please sign in to comment.