Scan the QR Code of Android

Source: Internet
Author: User

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-------------->

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.