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.