Monday, September 20, 2010

Start ZXing project in Eclipse/ADT

ZXing is one open-source barcode generator/scanner project. For more information, please review: http://code.google.com/p/zxing/

This article would be for the beginner who want to develop their own barcode scanner on Android based on Zxing.

1. Download the ZXing source codes based on the instruction: http://code.google.com/p/zxing/source/checkout   Suppose you download the code to /downloaddirectory/

2. Get the Eclipse/ADT based on the instruction: http://developer.android.com/guide/developing/eclipse-adt.html

3. Create one Android project in Eclipse.  Choose the : Create project from existing source. And choose the source directory to /downloaddirectory/android

4. Click Finish.

5. Import the ZXing core.jar (For details please see another blog post.)

6. Run as Android application, then you should see the application: Barcode Scanner:)