我的应用程序中的BarCodeEye QR Cocde Scanner实施 [英] BarCodeEye QR Cocde Scanner implementation in my application

查看:86
本文介绍了我的应用程序中的BarCodeEye QR Cocde Scanner实施的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试在我的android应用程序中集成二维码扫描仪,我正在使用zxing库BarcodeEye.

i am trying to integrate qr code scanner in my application in android, i am using zxing library BarcodeEye.

我已经在下面的代码中实现了

i have implemented below piece of code

Intent intent = new Intent("com.github.barcodeeye.scan.CaptureActivity");
        intent.putExtra("SCAN_MODE", "QR_CODE_MODE");
        startActivityForResult(intent, 0);

but i am getting a RuntimeException saying that unable to start activity component : android.content.ActivityNotFoundException: No Activity found to handle Intent { act=com.github.barcodeeye.scan}

任何人都可以帮助我哪里做错了

can any one help me where i am going wrong

感谢&问候. 纳真德拉

Thanks & Regards. Nagendra

推荐答案

您将需要在AndroidManifest.xml中注册CaptureActivity活动

You will need to register CaptureActivity Activity in the AndroidManifest.xml

<activity
        android:name="com.github.barcodeeye.scan.CaptureActivity"
        android:clearTaskOnLaunch="true"
        android:configChanges="orientation|keyboardHidden"
        android:screenOrientation="landscape"
        android:stateNotNeeded="true"
        android:theme="@style/CaptureTheme"
        android:windowSoftInputMode="stateAlwaysHidden" >
        <intent-filter>
            <action android:name="com.github.barcodeeye.SCAN" />

            <category android:name="android.intent.category.DEFAULT" />
        </intent-filter>
    </activity>

这篇关于我的应用程序中的BarCodeEye QR Cocde Scanner实施的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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