Getting started with ZXing on Android

后端 未结 8 755
野性不改
野性不改 2021-01-06 12:05

I\'m trying to add ZXing to my project (add a button which calls the scanner upon press). I found this: http://groups.google.com/group/android-developers/browse_thread/threa

8条回答
  •  野趣味
    野趣味 (楼主)
    2021-01-06 12:44

    Check your AndroidManifest whether you have given the "android:name" attributes correctly for the newly added Activities. You got "ActivityNotFoundException" it is mainly because you may have using a different package name and ZXing is using "com.google.zxing.client.android" package name. When you load the first Activity of the ZXing, give it the absolute class path not the relative path. Then your error will disappear.

提交回复
热议问题