How to use ZXing library without installing barcodescanner app

后端 未结 2 442
后悔当初
后悔当初 2021-02-06 08:32

I have been developing an android app to scan the barcode and QR code and send the results to some other application (HTTP). I have read most of the documentation over internet

相关标签:
2条回答
  • 2021-02-06 09:17

    You are showing that you want to integrate by Intent. That's the recommended way to do it, and you can make it even easier, and restrict the list of apps that reply with IntentIntegrator. It's about 5 lines of code: https://code.google.com/p/zxing/wiki/ScanningViaIntent

    However this contradicts what you're saying about wanting to implement the scanning in your app. You should clarify what you want.

    If that's the case, you need to build your own scanning app, and reuse core.jar and perhaps bits of Barcode Scanner in android/. This is not supported -- you're on your own. Please don't clone our app.

    0 讨论(0)
  • 2021-02-06 09:30

    I found "zxing" complicated to use. Then I tried with "ZBar Android Version Library". It was so simple. You can download the library from here: http://sourceforge.net/p/zbar/news/2012/03/zbar-android-sdk-version-01-released/

    Within the downloaded package, there is a very simple example. Just follow it or include the example to your app. Hopefully your task will be done.

    0 讨论(0)
提交回复
热议问题