value web hosting for small business from under £10 per month

Organic SEO Company

Natural SEO solutions for website seo,the organic search engine optimisation company. Website promotion for 1st page Google ranking

Maximise Your ROI With Organic SEO Help London
Why Pay Per Click when you can have relevant and pre-qualified organic traffic100% Free, Boost your position 'Rankings'and be in with a chance, millions of consumers search the web everday looking for products and services like yours!
Website promotion for 1st page Google ranking using professional seo services. Natural SEO solutions for website seo. Organic & natural SEO company providing search engine optimisation
Subscribe to RSS! Subscribe to RSS Comments!
Jun
10

Android barcode scanner in 6 lines of Python code

adminGoogle

After my last video about using a barcode scanner to add and search books in your library, I was feeling pretty happy. Bar code scanners are pretty cheap–mine cost about . But then Google released the Android Scripting Environment (ASE) and it turns out that you don’t even need a bar code scanner. Instead, you can use an Android phone such as the G1.

Just as a proof-of-concept, here’s a barcode scanner written in six lines of Python code:

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)

Thanks to fellow Googler Vijayakrishna Griddaluru for sending me this sample code. Visiting the resulting url offers the option to add that book to your library:

Android bar code scanner

Pretty easy, huh? You can read all about the new scripting environment. Not only can you scan bar codes, you can use text-to-speech, make phone calls, send text messages, read sensor data, and find your location–all from easy scripts. One person wrote a script to go into silent mode when the phone is placed screen-down on the table. It took less than 20 lines of code, and that’s including comments!

The Android Scripting Environment should make fun projects even easier. Brad Fitzpatrick wrote about using his Android phone to open his garage door automatically when his motorcycle gets close to home. Now those sorts of projects are even easier to write. :)

Share and Enjoy:
  • Digg
  • del.icio.us
  • Facebook
  • NewsVine
  • Reddit
  • StumbleUpon
  • YahooMyWeb
  • Google Bookmarks
  • Yahoo! Buzz
  • TwitThis
  • Live
  • LinkedIn
  • Pownce
  • MySpace

Related posts:

  1. Search your bookshelf with a $65 barcode scanner (Okay, if
  2. 30 days 30 days is
  3. Recent piece by Sanford and Brown (I work fo
  4. Use a Wii Balance Board with Linux In this po

Related posts brought to you by Yet Another Related Posts Plugin.

Add A Comment


Web Design Company
Web Search Engine Optimization
Website Optimization
Seo Services London
Organic Seo Definition
Search Engine Ranking Software
Search Ranking
Seo Copywriting
Seo Search
Site Ranking
Ppc Campaigns
Professional Web Design
Search Engine Marketing Consulting
Search Engine Optimization Business
Search Engine Optimization Tips
Internet Marketing Service
Low Cost Website
Online Marketing
Paid Search Engine Marketing
Pay Per Click Manage

Seo
Best Seo
E Commerce Website
Google Advertising
Increase Website Traffic

Optimisation for Social Networking and web 2.0 promotion, Optimisation strategies for Google, Yahoo, MSN search engine results pages (SERPS) & Local / Business listings, Optimisation strategies for Google Adwords & Adsense, List Building & Data capture , Semantic Indexing (LSI) / Silo strategies, seo search engine optimisation rankings, google seo rankings.

seo consultant london © 2009 Rod Gardner,organic seo search engine optimisation & training, London UK Tel: 07957 635683 | Sitemap | Resources