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

南笙酒味 提交于 2019-11-26 22:07:05

问题


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?


回答1:


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.



来源:https://stackoverflow.com/questions/13005259/how-does-com-google-zxing-client-android-scan-work-in-android

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!