Skip to content

Barcode Scanner Written For Android Phones in Just 6 Lines of Code

by Terry Moore on April 20th, 2010

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)

Share and Enjoy:
  • Print
  • Digg
  • Sphinn
  • del.icio.us
  • Facebook
  • Mixx
  • Google Bookmarks
  • Blogplay
  • Add to favorites
  • FriendFeed
  • MySpace
  • Reddit
  • Slashdot
  • StumbleUpon
  • Technorati
  • Yahoo! Bookmarks

Related Posts

No comments yet

Leave a Reply

Note: XHTML is allowed. Your email address will never be published.

Subscribe to this comment feed via RSS