5

I'm building the Android scanning app using zxing library. I have built the zxing core and included the core.jar into my application build path. I don't want to use the intent solution provided in this url "http://code.google.com/p/zxing/wiki/ScanningViaIntent".

My question is: How can I open the camera, capture the contentious images and pass to zxing core library to decode it, when the decode method return the success stop the camera and print the result?

I found the following link useful for me: http://www.arp123.com/post/Identified-in-the-Android-use-ZXing-barcode-QR-Code.html But I'm having problems in continuous scanning. When compared to zxing 1.6 Android barcode scanner app my solution is not good. If someone can help me or guide me to sort this out I would really appreciate it.

Bart
  • 19,692
  • 7
  • 68
  • 77
Sam
  • 6,215
  • 9
  • 71
  • 90
  • possible duplicate of [Using ZXing to create an android barcode scanning app](http://stackoverflow.com/questions/2050263/using-zxing-to-create-an-android-barcode-scanning-app) – Nifle Apr 19 '11 at 20:33
  • http://stackoverflow.com/questions/7870265/unable-to-execute-dex-multiple-dex-files-define-lcom-myapp-rarray – swiftBoy Dec 12 '13 at 05:37

1 Answers1

5

What I did was to export the core folder to a jar and use as a library in my project. Them from the android client folder I use the camera package and the most of the classes from the client.android package (only one activity remained though, captureActivity). I deleted the encode, history, result, share and wifi package and removed any references of this packages in the camera or android package.

I took the remaining classes (camera and android classes) and I integrated them into my project

thanks

omega
  • 630
  • 1
  • 6
  • 16
  • I did the same,just want to know is it OK to use the zxing-android classes(CaptureActivityHandler,DecoderThread,DecodeHandler,Camara Package etc) in my application/ – Sam Jun 01 '11 at 12:59
  • 1
    +1 @omega can you explained in details or having any links with your solution? sorry newbie here in android. – Roy Lee Mar 21 '13 at 02:56