Zxing barcode source code integration to the Android project [duplicate]
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"
精彩评论