Integrating the ZXing library directly into my Android application

后端 未结 17 1616
[愿得一人]
[愿得一人] 2020-11-22 04:35

I\'m writing this in mere desperation :) I\'ve been assigned to make a standalone barcode scanner (as a proof of concept) to an Android 1.6 phone.

For this i\'ve dis

17条回答
  •  一整个雨季
    2020-11-22 05:05

    The zxing guys have made it easier to create a android project with 1.7. Its not as painful as it used to be. This is a quick blog for anyone who would like to create a zxing project for android quickly.

    • Checkout the zxing sources from zxing.org
    • Create a Android project on your eclipse
    • Delete main.xml
    • Right click on “src” directory and hit import. Browse to the following directories in the order mentioned. As you add them for import one by one, ensure that you have the src directory in the edit field of the import wizard. And that you select only the “com” directory on the left directory tree. Do not select src.
    • core
    • android-integration
    • android
    • Ensure that your android sdk version is 9, anything lesser and androidmanifest.xml will cry.
    • Strings.xml in one of the languages will crib, just put a / before the ‘ character

    A android project for zxing 1.7 (June 20 checkout).

    http://www.4shared.com/file/bFx8Y5Ys/zXingJune2010.html (NOT AVAILABLE ANYMORE)

提交回复
热议问题