Skip to content

Instantly share code, notes, and snippets.

@benhosmer
Created May 6, 2013 15:51
Show Gist options
  • Save benhosmer/5525997 to your computer and use it in GitHub Desktop.
Save benhosmer/5525997 to your computer and use it in GitHub Desktop.
Using SL4A to read the barcode results data in python.
#!/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()
@mindylynn0
Copy link

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment