Appendix A

Scripting Layer for Android

Scripting Layer for Android (SL4A), which was previously known as Android Scripting Environment, is a platform for installing scripting language interpreters on Android devices and running scripts via these interpreters. Scripts can access many of the APIs that are available to Android apps, but with a greatly simplified interface that makes it easier to get things done.

NOTE: SL4A currently supports Python, Perl, JRuby, Lua, BeanShell, Rhino JavaScript, Tcl, and shell.

You can run scripts interactively in a terminal window (command window), in the background, or via Locale (http://www.twofortyfouram.com/). Locale is an Android app that lets you run scripts at predetermined times or when other criteria ...

Get Android Recipes: A Problem-Solution Approach, Second Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.