flowerbloom
asked on
Android application input barcode
I am building an Android application where the user can input a barcode and I provide details about the item, similar to MyFitnessPal application.
I can get the application working where the user can enter the barcode manually. I would like the user to be able to scan the barcode instead of typing it. The scanning should be done either by using the phone camera (preferred) or an external barcode reader.
I looked at ZXing but I got very confused. I probably just need the JAR file.
Please provide a detailed simple project example, including activity to accomplish this.
Thank you.
I can get the application working where the user can enter the barcode manually. I would like the user to be able to scan the barcode instead of typing it. The scanning should be done either by using the phone camera (preferred) or an external barcode reader.
I looked at ZXing but I got very confused. I probably just need the JAR file.
Please provide a detailed simple project example, including activity to accomplish this.
Thank you.
ASKER
Hi Krunal,
I cannot get these examples to work. I get errors like "class not found". I probably miss something that these tutorials assume I should do.
Do you have a downloadable working example with ZXing or Zbar?
Thanks,
Flowerbloom
I cannot get these examples to work. I get errors like "class not found". I probably miss something that these tutorials assume I should do.
Do you have a downloadable working example with ZXing or Zbar?
Thanks,
Flowerbloom
Hi Flowerbloom,
I have not the code but you can try this.
https://github.com/dm77/ZBarScanner
Thanks & Regards,
Krunal T. Tailor
I have not the code but you can try this.
https://github.com/dm77/ZBarScanner
Thanks & Regards,
Krunal T. Tailor
ASKER
I saw that example. It is old. He is using ZXing now also with added features for the Zbar.
Is there any chance you can create an example and send it to me?
My problem is not that I am not aware of ZXing (see original question), but that I cannot get the examples to work with it.
I need something complete.
Thanks.
Is there any chance you can create an example and send it to me?
My problem is not that I am not aware of ZXing (see original question), but that I cannot get the examples to work with it.
I need something complete.
Thanks.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Have you tried this tutorial?
http://code.tutsplus.com/tutorials/android-sdk-create-a-barcode-reader--mobile-17162
http://michalu.eu/wordpress/scanning-and-generating-barcodes-using-zxing-library-on-android/
http://www.mysamplecode.com/2011/09/android-barcode-scanner-using-zxing.html
Hope this will help you.
Thanks & Regards,
Krunal T. Tailor