Feeds

Google lets you code for Googlephones on Googlephones

Android's mobile scripting kit

Business security measures using SSL

Google has introduced an Android scripting environment that lets you code stuff for the Googlephone on the Googlephone.

It's called, well, the Android Scripting Environment. ASE, for short. It sits on the Android handset itself, giving coders the power to write and run scripts in Python, Lua, and BeanShell - without help from a PC. Google thinks that coding full-fledged Android apps on a PC is like heaven on earth, but it's still interested in giving developers the power to code on the run.

"Android's development environment makes life pretty easy, but you're tied to a computer to do your work," reads a blog post from Googler Damon Kohler. "ASE lets you develop on the device itself using high-level scripting languages to try out your idea now, in the situation where you need it, quickly."

The new scripting environment gives you access to many - but not all - of the APIs available to full-fledged Android apps. Scripts can make phone calls, send text messages, scan bar codes, poll location and sensor data, use text-to-speech, and more. As an example, Kohler shows off a script designed to prevent an Android phone from running when it's placed face-down.

Google Android Scripting Environment

Android scripting on Android

You can run scripts interactively in a terminal, launch them as long-running background services, or run them via Locale, a third-party Android app and developer platform that changes the Googlephone's behavior depending on where it's, yes, located.

With BeanShell, you can access Android's Java API directly. With Lua and Python, you tap the API via JSON RPC calls to a proxy. At some point, Google will also offer scripting with Ruby and Javascript as well.

The environment has not been published to the Android Market, Google's answer to the iPhone App Store, but the company says it will be soon. In the meantime, you can download an alpha here. The open-source project page also includes sample scripts and documentation. ®

New hybrid storage solutions

More from The Register

next story
New 'Cosmos' browser surfs the net by TXT alone
No data plan? No WiFi? No worries ... except sluggish download speed
'Windows 9' LEAK: Microsoft's playing catchup with Linux
Multiple desktops and live tiles in restored Start button star in new vids
iOS 8 release: WebGL now runs everywhere. Hurrah for 3D graphics!
HTML 5's pretty neat ... when your browser supports it
Mathematica hits the Web
Wolfram embraces the cloud, promies private cloud cut of its number-cruncher
Google extends app refund window to two hours
You now have 120 minutes to finish that game instead of 15
Intel: Hey, enterprises, drop everything and DO HADOOP
Big Data analytics projected to run on more servers than any other app
Mozilla shutters Labs, tells nobody it's been dead for five months
Staffer's blog reveals all as projects languish on GitHub
SUSE Linux owner Attachmate gobbled by Micro Focus for $2.3bn
Merger will lead to mainframe and COBOL powerhouse
iOS 8 Healthkit gets a bug SO Apple KILLS it. That's real healthcare!
Not fit for purpose on day of launch, says Cupertino
prev story

Whitepapers

Providing a secure and efficient Helpdesk
A single remote control platform for user support is be key to providing an efficient helpdesk. Retain full control over the way in which screen and keystroke data is transmitted.
WIN a very cool portable ZX Spectrum
Win a one-off portable Spectrum built by legendary hardware hacker Ben Heck
Storage capacity and performance optimization at Mizuno USA
Mizuno USA turn to Tegile storage technology to solve both their SAN and backup issues.
High Performance for All
While HPC is not new, it has traditionally been seen as a specialist area – is it now geared up to meet more mainstream requirements?
Security and trust: The backbone of doing business over the internet
Explores the current state of website security and the contributions Symantec is making to help organizations protect critical data and build trust with customers.