如何使用条码扫描结果字符串?
我使用 ZXing 扫描常规条形码(不是 QR 码),然后得到一个 scanresult
字符串,或者更准确地说是一个数字。
当我扫描二维码时,很容易使用结果,因为它始终包含 Android Market 的 URL。但如何使用常规条形码中的数字呢?使用哪个“搜索引擎”来获取合适的产品?
附言。通过 google.com 或 Google Shopping 查询此结果号根本没有返回任何产品
I use ZXing to scan a regular barcode (not QR code) and I get a scanresult
string, or to be more precise a number.
When I scan QR codes, it's easy to use the result because it always contains a URL to the Android Market. But how to use the number from a regular barcode? Which "search engine" to use to get the right product?
PS. quering this result number via google.com or Google Shopping returned no product at all
我从未使用过 ZXing,但我发现它支持多种条形码类型。条形码的类型将决定您可以在哪里查找它(即,这取决于您所说的“常规”条形码的含义)。如果是 UPC 条形码,您可以使用此网站之类的内容。
I've never used ZXing, but I see that it supports many barcode types. The type of the barcode will determine where you can look for it (i.e. it depends what you mean by a 'regular' barcode). If it's a UPC barcode, you can use something like this site.