File tree Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -3,23 +3,27 @@ QRCodeReaderView
3
3
4
4
Modification of ZXING Barcode Scanner project for easy Android QR-Code detection in portrait mode and AR purposes
5
5
6
- Original work can be found here: https://code.google.com/p/zxing/
7
-
8
6
---
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
9
10
11
+ Original work and code can be found here: https://code.google.com/p/zxing/
12
+ ---
10
13
How to use:
11
14
12
15
- Add library to your project.
13
16
- Check your App uses it as library (properties->Android->Library->Add...)
14
17
- Create an Activity which implements onQRCodeReadListener, and let implements required methods
15
18
- Make sure Activity orientation is PORTRAIT and give Camera permision in the manifest.xml
16
19
- Drag&Drop a "QRCodeReaderView" in the layout editor from "Custom & library views" like you actually do with a button for example
20
+
17
21
![ Image] ( ../master/readme_images/add_view.png?raw=true )
22
+
18
23
- In your onCreate method, you can find the view as usual, using findViewById() function.
19
24
- Set onQRCodeReadListener to the QRCodeReaderView.
20
25
- Start & Stop camera preview in onPause() and onResume() overriden methods.
21
26
- Use onQRCodeReadListener callbacks as you want
22
-
23
27
Example included in this repository:
24
28
25
29
``` java
You can’t perform that action at this time.
0 commit comments