如何做" com.google.zxing.client.android.SCAN"在Android的工作?如何做、工作、com、google

2023-09-04 12:37:22 作者:无奈敷衍的沦落

我开发了ZXING库吧codeScanner应用程序。为此,我下载了完整的库,并把它添加到我的凸出并称为意图与URI:com.myproject.vinscan.client.android.SCAN。但后来我发现,而不是下载和包括ZXING的所有包到我们的凸出的是,我们可以只使用URI进行Inetnt为com.google.zxing.client.android.SCAN。我的疑问是,它是如何工作没有图书馆。这是工作,即使在离线模式下(不带WIFI / GPRS)。是包含在Android SDK本身?

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?

推荐答案

如果您通过意图访问它,因为 com.google.zxing.client.android.SCAN 它需要的吧code扫描仪应用程序的要安装在客户端上。 ( 参考 )

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)

如果没有安装,它重定向到该网站,并提示下载用户。所以严格来说,用户必须连接到互联网ATLEAST一次,为了下载吧code扫描仪应用程序(如果他还没有的话)

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)

或者

如果您要添加引用ZXing核心库,为你的项目,你将能够访问它,而无需将用户出,下载吧code扫描仪。

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.