ZXing不读的Andr​​oid应用一维条码code [英] ZXing doesn't read 1D barcode in Android app

查看:161
本文介绍了ZXing不读的Andr​​oid应用一维条码code的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在开发的希望将使用一个酒吧code读取器扫描和找书新的应用程序。然后,我将使用ISBN信息,以获取更多信息。

I am developing a new application which hopefully will use a barcode reader to scan and find books. I will then use the ISBN information to get more information.

的意图工作,我可以扫描二维条码codeS确定,但书,我知道精细扫描使用完整的应用程序不是一维条码codeS。

The intents work and I can scan 2d barcodes ok but not the 1d barcodes of books which I know scan fine using the full application.

这是我的code。我已经尝试过了,而无需把额外的意图,它不会改变任何东西。

This is my code. I have tried it without putting the intent extras and it doesn't change anything.

Intent intent = new Intent("com.google.zxing.client.android.SCAN");
intent.putExtra("SCAN_MODE", "ONE_D_MODE");
startActivityForResult(intent, 0);

有什么明显的我失踪?在应用程序的设置还都只有一维扫描选定的。

Is there something obvious I am missing? The settings in the app also are selected on 1d scanning only.

感谢

推荐答案

原来,使用产品的方式完美地工作。我不知道为什么我没有尝试更早!

Turns out that using product mode worked perfectly. I don't know why I didn't try that earlier!

intent.putExtra("SCAN_MODE", "PRODUCT_MODE");

这篇关于ZXing不读的Andr​​oid应用一维条码code的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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