Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Embed Zxing library without using Barcode Scanner app [duplicate]

Tags:

android

zxing

What is the preferred way to embed the zxing library to provide scanning without having the Barcode Scanner app installed? I am looking to embed it in android without having to prompt the user for any extra installs. (Similar to the way the iPhone src works).

like image 349
Joey Schluchter Avatar asked Jan 31 '11 18:01

Joey Schluchter


1 Answers

It's really easier to just integrate via Intent. More reliable, and you get updates automatically. While I don't advise it...

The complete source code is available from the ZXing project. You want to build core.jar from core/ and put it in your Android lib/ folder to include the core decoder in your app. You do not want to include javase. You can look to the code in android/ as it is the source to Barcode Scanner, but as the authors we'd suggest you not just copy and paste it.

It is Apache licensed which means you can use it freely, as long as you essentially give the user access to the license terms.

like image 157
Sean Owen Avatar answered Oct 10 '22 04:10

Sean Owen