This article from http://blog.csdn.net/hellogv/, reference must indicate the source!
More and more mobile phones are equipped with auto-focus shooting functions, which also means these mobile phones can have bar code scanning functions .......The mobile phone has the bar code scanning function, which can optimize the shopping process and quickly store e-business cards (
Android-ZXing QR code scanning problems, androidzxing
In recent work, we need to develop software with the QR code scanning function (based on the ZXing open-source project). Record the problems and hope to help you.
1. First, because scanning requires camera activation, you
perfect solution to solve Android using zxing scan QR code changed to vertical screen, after the preview screen appeared stretched, distorted situation
First step: Findcom.zxing.cameraUnder the bagCameraConfigurationManager.javaIn the filevoid initFromCameraParameters(Camera camera)MethodStep two: InLog.d(TAG, "Screen resolution: " + screenResolution);Then ad
Use a QR code to automatically differentiate between iOS and Android, and even differentiate between iphone and ipad.HTML> Head> Metahttp-equiv= "Content-type"content= "text/html; charset=utf-8" /> title>Two-dimensional code downloadtitle> Scripttype= "Text/javascript"> /** Smartp
Find the relevant technology on the Internet to determine whether the mobile browser is ISO or Android to download the specified app via JSCreate a new JSP page code as follows: JSP page as the generation of two-dimensional code address, when scanning the QR code to open the
After Android uses Zxing to scan the QR code and change it to a portrait screen, the preview screen is stretched and distorted.
Perfect solution: After Android uses Zxing to scan the QR code and changes it to a portrait screen,
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 (surfaceh
Use a QR code to automatically differentiate between iOS and Android, and even differentiate between iphone and ipad.Transferred from: http://www.cnblogs.com/pengxl/p/3476588.htmlUse a QR code to automatically differentiate between iOS and
Android Zxing QR code scanning image stretching,
In this project, the QR code scanning is integrated with zxing, and the image on the scanning interface is obviously stretched and deformed.
Based on past experience, this problem is generally caused by misplacement of x and Y
Android open-source QR code recognition project zxing landscape screen changed to vertical screen recognition solution, androidzxing
I found a lot of methods on the Internet, but there was a problem in the end. After debugging for several hours, I finally solved the problem of portrait screen recognition perfectly.
First, you need to have the simplified
First, for "multi-terminal adaptation" "App internationalization"Assume that the URL for the previous page file is: http://www.XXX.com/app-install/terminal-language.htmlThen you can generate a two-dimensional code through the URL , scan the QR code, different terminal, language version of the specific, by the terminal-language.html automatically identify and jum
QR code scan Android Zxing image stretching Solution
Zxing is a QR code scanning project provided by google.
By default, the image is stretched after the screen is converted to a portrait.
The solution is as follows:
Zxing modifies
Void initFromCameraParameters (Camera camer
(Resultpointcolor); for (Resultpoint Point:curr Entlast) {canvas.drawcircle (Frame.left + point.getx (), Frame.top + point.gety (), 3.0f, Paint);}} Request another update at the animation interval, and only//repaint the laser line,//not the entire viewfinder mask . Å è¡#̈亞 id ã version 壂 æ 忔 fermium 勫 search锛 yue decyl 紝 å duo Yeast Rice 鍦 Edition 闀挎柟褰 Juan Indent ID Ã? Postinvalidatedelayed (Animation_delay, Frame.left, Frame.top, Frame.right, Frame.bottom); }} public void Drawviewfinder ()
Android Zxing QR code flash adding Function
This mainly modifies the CameraManager class under the. zxing. camera package in Zxing.
The switch code is added to CamereManager.
// Provide public void flashHandler () {// camera. startPreview (); Parameters parameters = camera. getParameters (); // determine the curren
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.