Created
May 6, 2013 15:51
-
-
Save benhosmer/5525997 to your computer and use it in GitHub Desktop.
Using SL4A to read the barcode results data in python.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/python | |
# -*- coding: utf-8 -*- | |
import android | |
droid = android.Android() | |
scan = droid.scanBarcode().result | |
result = [(scan['extras']['SCAN_RESULT'])] | |
droid.dialogCreateAlert('u'.join(result)) | |
droid.dialogShow() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Barcode reader library to read the barcode results data!