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.
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.
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.
Joined: Aug 05, 2005
You will need to get your legal department to check the terms of the license and also check out this FAQ page.