Simple use of ZXing in Android, androidzxing

Source: Internet
Author: User

Simple use of ZXing in Android, androidzxing

ZXing is a widely used QR code scanning library with fast scanning speed and high recognition rate. There are a lot of simplified and useful information about zxing on the Internet. Here is a summary:

1. Rewrite the ViewfinderView class under the com. mining. app. zxing. view package to implement the scan box style.

2. Modify the scan box size in CameraManager.

This article is well written, you can look at the http://blog.csdn.net/xiaanming/article/details/10163203

Ps: During the zxing modification process, I also encountered some problems, mainly because after being changed to a portrait screen, the scanning recognition rate became lower. If some friends also encountered this problem, please advise.


Android parsing barcode ZXing library details

Zxing is an open-source project of Google. You need to find its entry first. You should go to androidmanifest and xml to check that it is the main startup class of the program. Then, based on the main entry, it is best to break the DEBUG breakpoint by looking at its execution process step by step, so that you can better know where the code is executed !! If you have a camera, how can you scan it ?? At present, it seems that the local barcode resolution is not supported. The scanning function is not carried by the camera. You can use the code to manipulate the camera !! We recommend that you go to google to find the project homepage and download the ZxingTEST, Which is simpler than the full version of the code.

In Android, how does one rewrite the scan page by using zxing to write a QR code scan?

The scan interface has an activity.
But the scan box is drawn.
You need to plot the view to change it.
The code is stored in CameraManager to manage the camera, where the size of the scan box is set.
ViewfinderView: this is the View.

Related Article

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.