Getting started with ZXing on Android

后端 未结 8 757
野性不改
野性不改 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.

    0 讨论(0)
  • 2021-01-06 12:46
    1. Turn on SD card for the emulator.
    2. Copy link to BarcodeScaner found on ZXing download page
    3. Open browser in emulator and point to link edit box
    4. Enter terminal and command adb shell input text 'https://code.google.com/p/zxing/downloads/detail?name=BarcodeScanner-4.5.1.apk&can=2&q=' - the link is link found on ZXing download page
    5. Link copied to browser so you can download and install it. This solves described issue.
    0 讨论(0)
提交回复
热议问题