zXing 1.7 for Android, on eclipse


Self Advertisement
—–Start of Advertisement——-
BUILD CAR POOL SOLUTIONS ON ANY DEVICE TO RUN ANYWHERE (www.mcruiseon.com). Introducing mCruiseOn, the java library /json api’s that you can use to build a car pool solution. Be the next avego.com, carpooling.com, zimride.com. mCruiseOn is your one stop API on EC2.
——End of Advertisement——-

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

Edited
One more interesting blog to help you out

http://damianflannery.wordpress.com/2011/06/13/integrate-zxing-barcode-scanner-into-your-android-app-natively-using-eclipse/

Self Advertisement :)
BUILD CAR POOL SOLUTIONS ON ANY DEVICE TO RUN ANYWHERE (www.mcruiseon.com). Introducing mCruiseOn, the java library that you can use to build a car pool solution. Be the next avego.com, carpooling.com, zimride.com. mCruiseOn is your one stop API on EC2.

About these ads

7 thoughts on “zXing 1.7 for Android, on eclipse

  1. Pingback: Android | Pearltrees

  2. well basically in the importing part, i click import then i choose the folders you mentioned and it imports the whole thing not just the folder i selected..so there is no creating a project from existing soucre and ant building core.jar as in previous versions ?

    btw i looked this up because my qr code reader stopps working (classNotFound CaptureActivity) from time to time without touching anything however now it magically works again .. i just dont get it, is this normal ?

    • You need to import only those folders mentioned on the blog.

      You need to report your issues to zxing. I only help in the blog to get android integrated with zxing.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s