如何使用 zXing 在 Android 中为 IntentIntegrator 创建 [英] How to create for IntentIntegrator in Android with zXing

查看:48
本文介绍了如何使用 zXing 在 Android 中为 IntentIntegrator 创建的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想在 Android 中为 IntentIntegrator 创建一个对象.

I want to create a object for IntentIntegrator in Android.

IntentIntegrator integrator = new IntentIntegrator(ZBarReaderActivity.this);

这里 ZBarReaderActivity 是我的 Activity 类.

Here ZBarReaderActivity is my Activity class.

提前致谢,

请帮帮我.

IntentIntegrator 是来自 com.google.zxing.integration.android.IntentIntegrator 包的类.

IntentIntegrator is class from com.google.zxing.integration.android.IntentIntegrator package.

用于识别二维码内容的是电话号码、网站、WebUrl.

which is used for identify Qr Code content is Telephone Number, WebSite, WebUrl.

推荐答案

IntentIntegrator integrator = new IntentIntegrator(this);  /* "this" is enough */

欲了解更多信息,请观看:http://www.youtube.com/watch?v=mVkaua4Lcvo它是用德语解释的,但您可以查看代码以及它们如何为 IntentIntegrator 创建对象.

for further information, watch this: http://www.youtube.com/watch?v=mVkaua4Lcvo it's explained in german, but you can see the code and how they create a object for IntentIntegrator.

ps:你必须更详细地解释它,否则你无法得到问题的答案.

p.s: and you have to explain it in greater detail otherwise you cannot get an answer for your question.

这篇关于如何使用 zXing 在 Android 中为 IntentIntegrator 创建的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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