How to use ZXing library without installing barcodescanner app

后端 未结 2 444
后悔当初
后悔当初 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.

提交回复
热议问题