Tuesday, February 2, 2010

Python in Android - Android Scripting Environment(ASE)

Today i came know that there is a Python Android Scripting environment  that does amazing thing in few line.
Actually python is the only language which is having single line of code for hello world :).
Even in android Python does the magical programing in few lines.

An example via Matt Cutts -- "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)

How easy it is...!!!. It is tempting me to go and buy a Android phone asap...and try my python programing skill in Android industry.

No comments: