Jan 12, 2011 Replies: 84 This is a library to read barcodes. It uses the Zxing app to do the scanning. If the Zxing app is not installed, the user is redirected to the Android market to download the app. Functions: ABGetBarcode (eventName as String, mode as String) Starts the barcode scanner. The barcode is returned in the BarcodeFound event or the Canceled event Params: eventName (String): name of the ABBarcode object (lowercase!) mode (String): "" for everything "QR_CODE_TYPES" for QR codes "PRODUCT_CODE_TYPES" for UPC_A,UPC_E,EAN_8,EAN_13 "ONE_D_CODE_TYPES" for UPC_A,UPC_E,EAN_8,EAN_13,CODE_39,CODE_93,CODE_128 Example: Code: Copy Sub Button1_Click myABBarcode.ABBarcodeGet("myABBarcode", "QR_CODE_TYPES") End Sub Sub myABBarcode_BarcodeFound(barCode as String, formatName as String) msgbox(barCode, "") End Sub Sub myABBarcode_Canceled msgbox("Canceled","") End Sub Attachments ABZxing.zip ABZxing.zip 6 KB · Views: 7,144 ABBarcodeTest.zip ABBarcodeTest.zip 5.7 KB · Views: 6,053 Last edited: Jan 12, 2011 Click to expand...
This is a library to read barcodes. It uses the Zxing app to do the scanning. If the Zxing app is not installed, the user is redirected to the Android market to download the app. Functions: ABGetBarcode (eventName as String, mode as String) Starts the barcode scanner. The barcode is returned in the BarcodeFound event or the Canceled event Params: eventName (String): name of the ABBarcode object (lowercase!) mode (String): "" for everything "QR_CODE_TYPES" for QR codes "PRODUCT_CODE_TYPES" for UPC_A,UPC_E,EAN_8,EAN_13 "ONE_D_CODE_TYPES" for UPC_A,UPC_E,EAN_8,EAN_13,CODE_39,CODE_93,CODE_128 Example: Code: Copy Sub Button1_Click myABBarcode.ABBarcodeGet("myABBarcode", "QR_CODE_TYPES") End Sub Sub myABBarcode_BarcodeFound(barCode as String, formatName as String) msgbox(barCode, "") End Sub Sub myABBarcode_Canceled msgbox("Canceled","") End Sub
Erel B4X founder Staff member Licensed User Longtime User Jan 13, 2011 #3 Thank you. The documentation is available here: Basic4android - ABZxing
B bluedude Well-Known Member Licensed User Longtime User Jan 13, 2011 #4 Tested it, works like a charm! Keep up the great work.
agraham Expert Licensed User Longtime User Jan 13, 2011 #5 This library will also work with QuickMark which you can download from the Android Market.
alwaysbusy Expert Licensed User Longtime User Jan 13, 2011 #6 @agraham: Thanks for the tip on QuickMark. I did not know about that one.
agraham Expert Licensed User Longtime User Jan 13, 2011 #7 I wrote a QuickMark library for Basic4ppc and looked at both Zxing and QuickMark for Basic4android and noticed they both accept the same Intents so I tried it, and sure enough it worked.
I wrote a QuickMark library for Basic4ppc and looked at both Zxing and QuickMark for Basic4android and noticed they both accept the same Intents so I tried it, and sure enough it worked.
Brad Active Member Licensed User Longtime User Mar 1, 2011 #9 Anyone thinking of wrapping the entire library?
M mistermentality Active Member Licensed User Longtime User Mar 1, 2011 #10 alwaysbusy said: This is a library to read barcodes. It uses the Zxing app to do the scanning. If the Zxing app is not installed, the user is redirected to the Android market to download the app. Click to expand... Brilliant, thank you! I have an app from app inventor I want to rewrite in B4A and wondered how I would achieve the bar code scanning part of it and you've solved that issue before I even begin working on the rewrite Dave
alwaysbusy said: This is a library to read barcodes. It uses the Zxing app to do the scanning. If the Zxing app is not installed, the user is redirected to the Android market to download the app. Click to expand... Brilliant, thank you! I have an app from app inventor I want to rewrite in B4A and wondered how I would achieve the bar code scanning part of it and you've solved that issue before I even begin working on the rewrite Dave
P Pfriemler Member Licensed User Longtime User May 21, 2011 #11 Read barcodes "modal"? Great Job! Very simple to use. Did anyone thought about turning this into some modal dialog? Handling the results in a different sub is not so convenient. I would prefer something modal SUB (like Andrew Grahams DialogInput), which should return a barcode instead of a keyboard entry, enabling the program to wait at a specific point for the input. I use "Barcode Keyboard Demo" from the AnroidMarket. It includes a button to call then ZXing barcode scanner, the result comes as if it was typed on the keyboard. Great, but I don't like the rest of the keyboard My next job is: collecting barcodes from an external (bluetooth) device. Easy to achieve with the serials lib, but the same: better modal. Any hints are welcome!
Read barcodes "modal"? Great Job! Very simple to use. Did anyone thought about turning this into some modal dialog? Handling the results in a different sub is not so convenient. I would prefer something modal SUB (like Andrew Grahams DialogInput), which should return a barcode instead of a keyboard entry, enabling the program to wait at a specific point for the input. I use "Barcode Keyboard Demo" from the AnroidMarket. It includes a button to call then ZXing barcode scanner, the result comes as if it was typed on the keyboard. Great, but I don't like the rest of the keyboard My next job is: collecting barcodes from an external (bluetooth) device. Easy to achieve with the serials lib, but the same: better modal. Any hints are welcome!
M manios Active Member Licensed User Longtime User Jun 18, 2011 #12 Works great! Does even read very small barcodes very fast.
S scoty6v New Member Licensed User Longtime User Jul 3, 2011 #13 Problems with using the lib Hello, I've registerd me today to download and install this LIB. I copy it in the standard-dictionary but always have the same errormessage: Compiling code. Error Error parsing program. Error description: Unknown type: abzxing Are you missing a library reference? Occurred on line: 14 Dim myABBarcode As ABZxing Is there anything to do more? I've tried to compile the Example.
Problems with using the lib Hello, I've registerd me today to download and install this LIB. I copy it in the standard-dictionary but always have the same errormessage: Compiling code. Error Error parsing program. Error description: Unknown type: abzxing Are you missing a library reference? Occurred on line: 14 Dim myABBarcode As ABZxing Is there anything to do more? I've tried to compile the Example.
klaus Expert Licensed User Longtime User Jul 3, 2011 #14 In the IDE, click on the Libs Tab in the lower right corner and check the desired libraries. Best regards.
In the IDE, click on the Libs Tab in the lower right corner and check the desired libraries. Best regards.
netchicken Active Member Licensed User Longtime User Sep 25, 2011 #16 Thanks for the barcode scanner, it works great. It returns the bar code number, how can you get it to return the product? I see that I can stick the number into google and it will access online db's of codes, is there a procedure to do this automatically?
Thanks for the barcode scanner, it works great. It returns the bar code number, how can you get it to return the product? I see that I can stick the number into google and it will access online db's of codes, is there a procedure to do this automatically?
H hdtvirl Active Member Licensed User Longtime User Sep 26, 2011 #17 Problem with AZXING Libraries. I too have tried it out and it works to a point, when I scan for the first time everything is perfect and it returns the scanned data and the barcode format the next time I run it, it brings up the zxing scanner but the images appears to be split diagonally and bot halves move out of phase with each other so it is very difficult to line them up and get a scan. I get the same results (Split Image) using both the QuickMarks and the ZXING scanners I was wondering if the jar and xml files are compatible with Android 3.2 running on a Acer Iconia or are there newer libraries and if so where can I get them ?. Also is there any way of just getting the scanner rectangle rather than the complete screen being filled with the camera image (this is just a small thing). Thanks for the libraries. Regards BOB
Problem with AZXING Libraries. I too have tried it out and it works to a point, when I scan for the first time everything is perfect and it returns the scanned data and the barcode format the next time I run it, it brings up the zxing scanner but the images appears to be split diagonally and bot halves move out of phase with each other so it is very difficult to line them up and get a scan. I get the same results (Split Image) using both the QuickMarks and the ZXING scanners I was wondering if the jar and xml files are compatible with Android 3.2 running on a Acer Iconia or are there newer libraries and if so where can I get them ?. Also is there any way of just getting the scanner rectangle rather than the complete screen being filled with the camera image (this is just a small thing). Thanks for the libraries. Regards BOB
M magarcan Active Member Licensed User Longtime User Sep 26, 2011 #18 agraham said: I wrote a QuickMark library for Basic4ppc and looked at both Zxing and QuickMark for Basic4android and noticed they both accept the same Intents so I tried it, and sure enough it worked. Click to expand... Does Google Google is also supported?? Are there any way to avoid having to install any external software like Zxing or QuickMark??
agraham said: I wrote a QuickMark library for Basic4ppc and looked at both Zxing and QuickMark for Basic4android and noticed they both accept the same Intents so I tried it, and sure enough it worked. Click to expand... Does Google Google is also supported?? Are there any way to avoid having to install any external software like Zxing or QuickMark??
agraham Expert Licensed User Longtime User Sep 26, 2011 #19 magarcan said: Does Google Google is also supported?? Click to expand... Are there any way to avoid having to install any external software like Zxing or QuickMark?? Click to expand... No.
magarcan said: Does Google Google is also supported?? Click to expand... Are there any way to avoid having to install any external software like Zxing or QuickMark?? Click to expand... No.
M magarcan Active Member Licensed User Longtime User Sep 26, 2011 #20 I want to mean Google Goggles because of it also read Qr codes...