Android Development--two-dimensional code development and application (reprint!) )

Source: Internet
Author: User

Android Project development QR Code scan

QR Code scan project based on Android platform to view results and link URLs

Tools/Materials
    • Zxing
    • Eclipse
Method/Step
    1.  

      First you need to use the zxing and Core.jar files provided by Google, you can download

    2.  

      Unzip zxing, and import the Android folder as an item into eclipse

    3.  

      Open File list, Import Core.jar in the Libs file, and modify the parts of the error (all minor problems, follow the prompts to modify the line)

    4.  

      Project at this time can be run, effect (I have made some changes to the interface, including rotating the angle of the camera lens, removed some unused features)

    5.  

      If you want to use the results to open the URL link, you also need to modify some of the code. First find Captureactivity.java, and open the file

    6.  

      Find function handledecodeinternally, this function is to display the results of the scan to the function

    7.  

      Type the function shown in the dialog box to display the URL link, and through the button to confirm access (where Webviewact is a Java file I wrote, is a new activity, using the WebView control to display the Web page, and has its own layout file)

    8.  

      If you want to show other types of scan results, you can also add the following code

      end
Precautions
    • To add Core.jar to the Libs file and modify the error to run

Android Development--two-dimensional code development and application (reprint!) )

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.