Skip to content

Commit 44eea06

Browse files
committed
Update README.md
1 parent 6803328 commit 44eea06

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

README.md

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,23 +3,27 @@ QRCodeReaderView
33

44
Modification of ZXING Barcode Scanner project for easy Android QR-Code detection in portrait mode and AR purposes
55

6-
Original work can be found here: https://code.google.com/p/zxing/
7-
86
---
7+
This project implements an Android view which show camera and notify when there's a QR code inside the preview.
8+
9+
Some Classes are taken and slightly modified from Barcode Scanner
910

11+
Original work and code can be found here: https://code.google.com/p/zxing/
12+
---
1013
How to use:
1114

1215
- Add library to your project.
1316
- Check your App uses it as library (properties->Android->Library->Add...)
1417
- Create an Activity which implements onQRCodeReadListener, and let implements required methods
1518
- Make sure Activity orientation is PORTRAIT and give Camera permision in the manifest.xml
1619
- Drag&Drop a "QRCodeReaderView" in the layout editor from "Custom & library views" like you actually do with a button for example
20+
1721
![Image](../master/readme_images/add_view.png?raw=true)
22+
1823
- In your onCreate method, you can find the view as usual, using findViewById() function.
1924
- Set onQRCodeReadListener to the QRCodeReaderView.
2025
- Start & Stop camera preview in onPause() and onResume() overriden methods.
2126
- Use onQRCodeReadListener callbacks as you want
22-
2327
Example included in this repository:
2428

2529
```java

0 commit comments

Comments
 (0)