This week's giveaway is in the Programmer Certification (OCPJP) forum.
We're giving away four copies of Java Mock Exams (software) and have David Mayer on-line!
See this thread for details.
Win a copy of Java Mock Exams (software) this week in the Programmer Certification (OCPJP) forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Writing a Barcode scanner in Android.

 
Monu Tripathi
Rancher
Posts: 1369
1
Android Eclipse IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
My application wants to have functionality of reading Barcodes. The image will be captured by a camera and the application should scan the Barcode and use it in some meaningful way.I did a google and stumbled upon - zxing the open source library for Barcode reader.There is also an application named "Barcode Scanner", written using the same zxing libraries, which I can install and invoke from my application using intents. But, lets say, that is something I cannot do(I dont see a reason to assume that the clients of my application will have that installed).

I will have to probably use the core libraries myself? I am unsure of where to start.
Any pointers or links to tutorials that can help here will be appreciated.

Thanks.
 
Sonny Gill
Ranch Hand
Posts: 1211
IntelliJ IDE Mac
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Writing a robust barcode scanner library is not going to be trivial.
Luckily, zxing is released under Apache license so you can use it or build on it even for a commercial product.

In any case, having a look at the zxing source is probably a good start - Android client.
 
Monu Tripathi
Rancher
Posts: 1369
1
Android Eclipse IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Sonny Gill wrote:Writing a robust barcode scanner library is not going to be trivial.
Luckily, zxing is released under Apache license so you can use it or build on it even for a commercial product.
...


I don't intend to write everything from scratch but would be using the core libraries of zxing. I just need something to start(tutorial etc.); thanks for sharing the link!
 
Happiness is not a goal ... it's a by-product of a life well lived - Eleanor Roosevelt. Tiny ad:
the new thread boost feature: great for the advertiser and smooth for the coderanch user
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!