简体   繁体   English

Android 使用条码扫描器 Zxing

[英]Android Using Barcode Scanner Zxing

I was wondering if it is possible to do a barcode search withought leaving an app (ie opening a browser and doing a google search).我想知道是否可以在不离开应用程序的情况下进行条形码搜索(即打开浏览器并进行谷歌搜索)。 I've perused this site and others but did not find anything.我仔细阅读了这个网站和其他网站,但没有找到任何东西。 Apologies in advance if this has been covered somewhere here.如果这里的某个地方已经对此进行了介绍,请提前道歉。

Thanks谢谢

Yes, it is possible.对的,这是可能的。 We use barcode readers in various apps.我们在各种应用程序中使用条形码阅读器。 Use startActivityForResult passing an Intent specifying the zxing barcode reader class.使用 startActivityForResult 传递一个 Intent,指定 zxing 条码阅读器 class。 As a result you get the scanned code.结果,您获得了扫描的代码。

You can definitely added ZXing to your app.您绝对可以将ZXing添加到您的应用程序中。 The docs there describe adding it to your app as well as integrating with the Barcode Scanner app.那里的文档描述了将其添加到您的应用程序以及与 Barcode Scanner 应用程序集成。 In either case, you're going to get numeric code for the product.无论哪种情况,您都将获得产品的数字代码。 It is up to you to use this code.使用此代码由您决定。 You can perform product searches on various providers like Google, Bing, Amazon, etc.您可以在 Google、Bing、Amazon 等各种提供商上执行产品搜索。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM