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 only the Python, Perl, JRuby, Lua, BeanShell, Rhino JavaScript, and Tcl scripting languages.

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

Get Android Recipes: A Problem-Solution Approach 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.