Android-based zxing QR code generation and Identification
QR code:
The data symbol information is recorded using a certain black/white image distributed on a plane (two-dimensional direction) according to a certain rule;
In code compilation, the concept of 0-bit and 1-bit streams that constitute the Logic Basis of the computer is cleverly used to represent the te
Full Analysis of Android barcode recognition software developmentA major feature of Android is that it can identify the bar code to get a URL that can be directly accessed and downloaded.
Functions undoubtedly provide great convenience for users.
Therefore, it is necessary to develop bar code recognition software on Android
Write at the top (this is an update to the previous blog post on "Android using zbar QR code Scan")Project download Zbarlib compile project project download 0 pointsBugIn 2.3 of the system holder need to set type, otherwise it will be black screen (thanks to the Netizen "(Α⒎ to Sんа) 294439435")Com.example.qu.MainActivity the 50th row of Mholder.settype (surfaceholder.surface_type_push_buffers);Found todayT
Recently want to develop a simple program based on Android Barcode plugin, but in the network can not find a simple Demo, so in English website https://code.google.com/p/zxing/) Find ah, find Ah ~ I finally figured it out. It was so simple, but the troubleshooting process was quite tangled ~ So remember it here.
1. Download required resources
110000barcodescanner4.4.apk this software is usually pre-install
Source:Address 1:https://github.com/alivebao/barcodereaderAddress 2:http://download.csdn.net/detail/miaoyunzexiaobao/8297201Reference Links:Zxing Getting Started: http://www.cnblogs.com/liuan/archive/2012/01/05/2312714.htmlBitmapluminancesource class implementation: http://blog.csdn.net/xyz_fly/article/details/8089558Objective: To complete a barcode scanning program, can identify the one-dimensional code and QR
The day before yesterday, I sent an article about the application of bar code recognition software for Android development.ProgramBlog, did not expect to be very popular.
I am also very encouraged. Well, I will continue to write down my blog.
Some people mentioned in the previous article that I have not written any substantive content. I accept the suggestions. Here I will show you the simplest and most direct perfect experience.
Write your firs
Android uses the zbar QR code scan and androidzbar
Source code download
In the past, zxing was used for development, and various strange issues, such as horizontal screen repair, were not implemented in terms of performance. After being tested and approved, I cannot change zbar. Performance is much better.
Look at the effect.
2. Search box on the Interface
/*** 11:14:21 * Created By niexiaoqiang */packa
Http://www.cnblogs.com/dolphin0520/p/3355728.htmlNow walk in the streets can see two-dimensional code, and recently because of the project needs, so research the next two-dimensional code development of things, open source QR Code scanning library mainly has zxing and Zbar,zbar in the IPOs platform application more mature, and on the Android platform mainstream or use zxing library, So here are the main way
Android generates a QR code with an image,
I. Problem Description
In development, we need to convert the information into two-dimensional code storage and require the company logo. We know that Google's Zxing open-source project can help us to generate and parse the barcode and two-dimensional code, however, the official website with a logo does no
); $ (location). attr ('href', 'index.html'); } Else{}})} setinterval ("Time ()", 4000);Script>Buttontype= "Submit"ID= "BTN"onclick= "clickbtn ()">Click Generate QR CodeButton>src= "Https://www.baidu.com/img/baidu_jgylogo3.gif" -imgID= "img"style= "Visibility:visible"width= "250px"/>Body>HTML>Above is the service side of the code, rest assured that the source, the bottom of the end to write togetherThe following start
Android Read and NetEase music function source650) this.width=650; "src=" Http://www.apkbus.com/data/attachment/forum/201710/24/110530crnxz23qlnsyh6x0.gif "alt= "Android Read and NetEase music function source code"/>Android with waterfall flow show beautiful pictures source650) this.width=650; "src=" Http://www.apkbus.com/data/attachment/forum/201710/24/105601kar
Android QR code scanning (zxing usage summary)
There are three main points:
1. Draw the interface, including four corners, scrolling up and down, and adding text to the canvas
2. Adjust the position of the QR code scan box.
3. Solve the Problem of image deformation.
1. Draw the onDraw () method in ViewfinderView. java on the page
@ Overridepublic void onDraw (Can
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.