Barcode Scanner Written For Android Phones in Just 6 Lines of Code
If you found this information useful, please let me know by leaving me a comment. Thanks!
Tweet
Here’s a barcode scanner written in six lines of Python code using the Google released the Android Scripting Environment (ASE):
import android droid = android.Android() code = droid.scanBarcode() isbn = int(code[‘result’][‘SCAN_RESULT’]) url = “http://books.google.com?q=%d” % isbn droid.startActivity(‘android.intent.action.VIEW’, url)
This is just a proof-of-concept but it show the power and ease of Google’s Python scripting tools when combined with Android.
Written By Matt Cutts (Sorry I don’t have the original link)
Related Posts
No comments yet
