Skip to content Skip to sidebar Skip to footer

Android Qr Scanner/reader App Standalone Without Having To Install Zxing App - Is It Illegal/legal-anything Else Available Apart From Zxing

I have researched a lot about creating my own app for android with a QR code Scanner & Reader without having to install Zxing app on the phone. I have gone through a lot of que

Solution 1:

I'm the author and the source of most the comments you're asking about. As long as you follow the terms of the Apache License 2.0 (see comments here), you have license to use the copyrighted work of the project for just about any purpose.

I'm not discouraging anyone from reusing the code (in accordance with above), even some from Barcode Scanner, as it is after all open-source and has been given away by the authors to be benefit the community. I am strongly discouraging copying the project substantially in its entirety into an app. There are a few reasons for this:

  • People usually copy AndroidManifest.xml and its declarations. This makes the clone app respond to Intents that were meant for the Barcode Scanner app. It inconveniences or breaks the user experience for our app and others. Not good at all.
  • Copying the familiar project UI will make people think they're using Barcode Scanner when they're not. There is a potential legal issue of trademark here if your product is confusingly similar to another. The open source license does not grant trademark rights.
  • Your app issues may get reported to us as project bugs as a result. Developers asked to do this embedding sure do ask for a lot of help on the mailing list too. That harms the overall community by making others support your app.

The usual reasons given for doing such copying are:

  • It's a better user experience to embed the scanning. Maybe so, but, you can write your own scanning app, or at least your own UI. I am not sure it is a better user experience either. For example, if using Intents, your users can scan with better specialist apps that you don't have access to, like Barcode Scanner+ or Goggles.
  • My company won't let me use a third-party app. Maybe, but it's just identifying someone else who's making the decision, not justifying it. If it's for 'security' reasons -- these apply equally well to embedding third-party code.

These reasons tend to boil down to "it will make me less money." I don't think they outweigh the issues above, and certainly do not answer the trademark issue. I have little sympathy for the copycats, especially having seen so many clones in the Market that just add ads, or in one case, malware.

Solution 2:

The Zxing team rightly point out that integration into your app by integrating source code is not the best code.

REF: http://damianflannery.wordpress.com/2011/06/13/integrate-zxing-barcode-scanner-into-your-android-app-natively-using-eclipse/

Why?

It means that every time an update is published for Zxing, you will have to copy their updated code and include it within your app, and then publish an update for your own app in turn. There is no guarantee that any updates will be compatible with your current model either.

So that leaves us with intents. See http://code.google.com/p/zxing/wiki/ScanningViaIntent

Zxing have done a great job with this. You have to include a little bit of extra code that elegantly handles the situation if the user does not have Zxing (or an equivalent .e.g. Google Goggles that runs off Zxing oddly enough) installed. It will prompt them to install Zxing if it is not installed and if it is then the app will start.

I personally like this approach because:

  • The user has access to the new Zxing app updates immediately without being dependent on me.
  • Zxing when launched via intent does not show any branding - so any client that has brand awareness issues should be happy.
  • Apart from having to install Zxing if it is not already, the intent method works from a user perspective exactly the same, assuming you launch the scanner in full screen mode as it is by default.

I am not saying it is bad to integrate, I am saying it is probably not the best approach. That said we have found situations where we need the scanning built directly into the app. To do this requires some minor amends to the source (changing a few switch statements to if/else).

Is it legal to do it this way or do we have to use intent?

It is open source so you may do it either way in the end. However I hope that my above experience may deter you from integrating their code with yours.

The code is under Apache Licence V 2.0 and you can read the conditions at http://code.google.com/p/zxing/wiki/LicenseQuestions

Post a Comment for "Android Qr Scanner/reader App Standalone Without Having To Install Zxing App - Is It Illegal/legal-anything Else Available Apart From Zxing"