从Android的扫描棒code获取的实际数据 [英] Getting actual data from scanned barcode in android

查看:211
本文介绍了从Android的扫描棒code获取的实际数据的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我开发一个简单的酒吧code扫描仪应用程序,它扫描棒code和显示产品信息。使用Zbar库我能够扫描棒code和获取格式的任何产品。

I am developing a simple barcode scanner app which scans the barcode and displays the product info. Using Zbar library I am able to scan barcode and get format for any product.

我如何转换栏code扫描,我需要显示用户屏幕上的实际数据或产品信息?
是否有任何API或库可做到这一点?

How can I convert barcode scanned to actual data or product information that I need to display on user screen? Is there any API or library available to accomplish this?

推荐答案

您可以使用最新的酒吧code扫描的蜜蜂提供作为谷歌播放服务7.8版本的一部分。它有酒吧code 类,提供displayValue,valueFormat,rawValue,网址,电话,电子邮件等CONTACTINFO与酒吧code,你可以得到并显示给最终用户相关的所有信息。欲了解更多信息,可以按照 codeLAB ,请参阅 Github上样品

You can use latest Barcode Scanning Apis provided as part of Google Play Services 7.8 version. It has Barcode class that provides displayValue, valueFormat, rawValue, url, phone, email, contactInfo etc all the information associated with Barcode which you can get and display to an End User. For more information, you can follow CodeLab, refer Github Sample.

这篇关于从Android的扫描棒code获取的实际数据的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆