Pradeep CR
Pradeep CR

Reputation: 517

how does "com.google.zxing.client.android.SCAN" work in android?

I developed a BarcodeScanner app with ZXING library. for that I downloaded the complete library and added it to my proj and called an Intent with URI:"com.myproject.vinscan.client.android.SCAN". but later I found that, instead of downloading and including all packages of ZXING into our proj, we can just use the URI for Inetnt as "com.google.zxing.client.android.SCAN". My doubt is, how is it working without the libraries. It is working even in offline mode(without WIFI/GPRS). are the libraries included in the android SDK itself?

Upvotes: 3

Views: 23076

Answers (2)

antonio
antonio

Reputation: 718

Taken from https://github.com/zxing/zxing

The project is in maintenance mode, meaning, changes are driven by contributed patches. Only bug fixes and minor enhancements will be considered. The Barcode Scanner app can no longer be published, so it's unlikely any changes will be accepted for it. It does not work with Android 14 and will not be updated. Please don't file an issue for it. There is otherwise no active development or roadmap for this project. It is "DIY".

Upvotes: 0

Anirudh Ramanathan
Anirudh Ramanathan

Reputation: 46728

If you are accessing it via the intent, as com.google.zxing.client.android.SCAN it needs the Barcode Scanner application to be installed on the client. (Reference)

If it isn't installed, it redirects to the website and prompts the user to download. So strictly speaking, the user will have to be connected to the internet atleast once, in order to download the Barcode Scanner application (if he doesn't already have it)


Alternately

If you were to add a reference to the ZXing core library, into your project, you will be able to access it without having to direct the user out, to download Barcode Scanner.

Upvotes: 6

Related Questions