开发者

Zxing barcode source code integration to the Android project [duplicate]

开发者 https://www.devze.com 2022-12-27 23:50 出处:网络
This question already has answers here: Integrating the ZXing library directly into my Android application
This question already has answers here: Integrating the ZXing library directly into my Android application (17 answers) Closed 6 years ago.

I want to integrate the zxing source code to my Android application. I have downloaded the zxing1.5 a开发者_StackOverflow中文版nd integrate the whole code to my application and I am calling the activity "CaptureActivity" through intent.

It is showing only the camera view but it is not scanning the barcode. How can I solve this problem - I want my application to be stand alone. I don't want to install BarcodeScanner.apk separately in the device.


I don't think CaptureActivity is what you want - instead, you should be using com.google.zxing.client.android.SCAN.

See the article How to scan a barcode from another Android application via Intents for code samples, and links to further related articles.


I could do that! You need to copy the entries in main.xml which contain

"android:name="com.google.zxing.client.android.SCAN"
0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号