The scanning of QR code in Android platform is generally used:
Zxing: Reference Address
Zxing features more powerful, support barcode and QR code scanning, with more people, but zxing too large, general development of simple apps, used to be more troublesome.
So the network has a simplified version of the zxing, the principle is to the original zxing part of the class, into the form of jar package.
Zbar: Reference Address
Zbar used on Android reference: http://www.2cto.com/kf/201401/269480.html
The method provided in this paper, based on the second, uses the Jni method to put the decoding part into the so file to improve the efficiency.
This demo from the network, thanks to the original author's hard coding, the effect is really good, and relatively lightweight, but does not support barcode scanning
Ideal for use in general apps.
Demo: Please poke here-------------->