Tue

Jun 9
2009

Brady Forrest

Scripting Comes to Android

by Brady Forrest | @bradycomments: 13

ase logo

Google is bringing scripts to Android. The Android Scripting Environment (ASE) will make development accessible and easy for devs who don't want to build a full-fledge application. As Google provides these details:

Scripts can be run interactively in a terminal, started as a long running service, or started via Locale. Python, Lua and BeanShell are currently supported, and we're planning to add Ruby and JavaScript support, as well.

These scripts can:

Handle intents
Start activities
Make phone calls
Send text messages
Scan bar codes
Poll location and sensor data
Use text-to-speech (TTS)
And more

The ASE will greatly increase the customizability of Android phones. This is one of the more interesting developments I have seen for mobile apps. I hope that the Market supports trading scripts. The ASE is not in the Market yet, but you can download it from its project page.

ase screen

Via Hacker News

Update: Via Matt Cutts, a 6 line Python script that scans book barcodes:


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)

ASE is going to be very powerful.

tags: androidcomments: 13
submit:

 
Previous  |  Next

Comments: 13

HereAndNow [2009-06-09 02:05 AM]

Cool! Android seems to be getting more powerful, by the minute. Now, all Android needs is for vendors to start offering Android on some beautiful handset designs.

Scott [2009-06-09 05:40 AM]

Very NIICCEE!!! "You say you want a revolution!"

monks [2009-06-09 06:41 AM]

Where is Perl?

@nyet [2009-06-09 09:42 AM]

yes - where is Perl?

Anonymous [2009-06-09 09:46 AM]

Why is perl the red headed step child to Google?

Dave [2009-06-09 11:09 AM]

What about mIRC-Script too, guys? lol

Kai Tamkun [2009-06-09 04:36 PM]

But what about PHP?

Mark Murphy [2009-06-09 05:43 PM]

To the "where is Perl?" folks, is there a Perl clone written for the JVM?

If yes, then there is a fighting chance it can work with ASE, as ASE appears aimed at languages that can run on the Android Dalvik VM.

If not, I'd start there.

monks [2009-06-09 06:55 PM]

@Mark Murphy
What is http://code.google.com/p/perldroid/ ??

Perl on Android is already accepted. :b
http://code.google.com/p/android-scripting/issues/detail?id=32

Don't think your programming language only can do something.

Aloke Saha [2009-06-17 11:04 PM]

http://www.crystal-gift-award.com

world's finest crystal awards


We have more than 15 years experience in creating the world's finest crystal awards. We are a leading supplier of unique and exquisite crystal recognition awards to the promotional products industry. Consequently, we partner with our customers to create award programs that produce an elegant and unforgettable experience. Let us supply the perfect award for your next corporate event,employee recognition program, or employee incentive program.

Aloke Saha [2009-06-17 11:05 PM]

http://www.intagent.com

Intagent is a Leading Real Estate Web Design Company. We provided Real Estate Web Design, FSBO Websites, Realtor Website Design,Low cost Real Estate Website Design, Real Estate Agent Design Templates, and more...

Juliette [2009-07-15 04:21 AM]

I'm looking forward to see how all of these will work. I trust google and I'm sure they will do a great job implementing these scripts. This also is going to make things even simpler for those who want to take some programming and have no knowledge of all languages supported by Android.

Bala [2010-01-27 12:41 AM]

I am looking for Perl interpreter as well - Any ideas about that?

Post A Comment:

 (please be patient, comments may take awhile to post)





RECOMMENDED FOR YOU

  1. O'Reilly Tools of Change for Publishing Conference, February 22 - 24, 2010, New York, NY
  2. Where 2.0 Conference, March 30 - April 1, 2010, San Jose, CA
  3. O'Reilly MySQL Conference & Expo, April 12 - 15, 2010, Santa Clara, CA
  4. Web 2.0 Expo, May 3 - 6, 2010, San Francisco, CA
  5. Gov 2.0 Expo, May 25 - 27, 2010, Washington, DC
  6. $249.00
    Twitter and the Micro-Messaging Revolution, OReilly Radar Report

RECENT COMMENTS