How to use zxing core as a library in my android project?

I am creating an Android scanning application using the zxing library. I built the zxing core and included core.jar in my application build path. I do not want to use the intentional solution specified in this URL "http://code.google.com/p/zxing/wiki/ScanningViaIntent".

My question is: how can I open the camera, capture controversial images and go to the main zxing library to decode it, when the decoding method returns success, stop the camera and print the result?

I found the following link for me: http://www.arp123.com/post/Identified-in-the-Android-use-ZXing-barcode-QR-Code.html But I have problems with continuous scanning. Compared to zxing 1.6 Android barcode scanner application my solution is not very good. If someone can help me or help me figure this out, I would really appreciate it.

+4
source share
1 answer

I did to export the main folder to the jar and use it as a library in my project. From the Android client folder, I use the camera package and most of the classes from the client.android package (there is only one action left, captureActivity). I uninstalled the encode, history, result, share and wifi package and deleted any links of these packages in the camera or android package.

I took the remaining classes (camera classes and androids) and I included them in my project

thanks

+5
source

Source: https://habr.com/ru/post/1339804/


All Articles