File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Android and the fly likes Zxing integration into android app Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Soft Skills this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Mobile » Android
Bookmark "Zxing integration into android app" Watch "Zxing integration into android app" New topic
Author

Zxing integration into android app

Anuj Prashar
Ranch Hand

Joined: Apr 15, 2008
Posts: 99

Hello friends,

I am working on an android app that involves barcode scanning. For which I am using zxing library, so far I have done this by using intent to invoke barcode scanning app. But now I have been told to integrate barcode scanning code in my app code, that is including zxing code in my app instead of using intent to invoke barcode scanning app. My question is that is it good idea to include zxing code in app? Can someone that have done zxing code integration in android app guide me how to do it.

Thanks


SCJP 5,SCWCD 5, RHCT
Joanne Neal
Rancher

Joined: Aug 05, 2005
Posts: 3742
    
  16
The first thing you should do is ask whoever told you to do this, why they want it done. What you are doing at the moment (using an intent to invoke the other app) is the correct way to do it. It means you don't have to worry about updating your app whenever zxing is updated and also means it should be easy to use an alternative barcode scanner app if the user doesn't have zxing installed.


Joanne
Anuj Prashar
Ranch Hand

Joined: Apr 15, 2008
Posts: 99

Thanks for replying. Actually client wants the app to have barcode scanning capability in it instead of downloading another app for barcode reading. One more question can we use zxing for commercial purposes.

Thanks
Joanne Neal
Rancher

Joined: Aug 05, 2005
Posts: 3742
    
  16
You will need to get your legal department to check the terms of the license and also check out this FAQ page.
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Zxing integration into android app