top of page

Python in Android - Android Scripting Environment(ASE)

Arivoli

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.

more info in : http://google-opensource.blogspot.com/2009/06/introducing-android-scripting.html

4 views0 comments

Recent Posts

See All

Comments


Vintage Postbox

Thanks for submitting!

  • Twitter
  • Facebook
  • Youtube

Subscribe to our news letter to stay connect with us

ARIVOLI.IN © All Rights Reserved

bottom of page