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:
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:
B4X:
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
Last edited: