Total Pageviews

Sunday 21 February 2016

Scripting Layer for Android (SL4A)

SL4A brings scripting languages to Android by allowing you to edit and execute scripts and interactive interpreters directly on the Android device. These scripts have access to many of the APIs available to full-fledged Android applications, but with a greatly simplified interface that makes it easy to get things done.
Scripts can be run interactively in a terminal and in the background. Python, Perl, JRuby, Lua, BeanShell, JavaScript, Tcl, and shell are currently supported, and we're planning to add more. See the SL4A Video Help playlist on YouTube for various demonstrations of SL4A's features.
SL4A is designed for developers and is alpha quality software.
  • Even though a lot of contributors are working for Google, this is not an official Google product.
  • SL4A is no longer under active development. However, some forks of this project may be.

  • Documentation
The original Google Code wiki has been converted to Markdown and is available in the wiki branch. A few of the most important pages are:

Issues

Issues have been migrated from Google Code. However, this probject is no longer under active development. Consider responding to and filing new issues against an active fork.

Support

Support for SL4A is provided by the community on the project mailing list.

from https://github.com/damonkohler/sl4a
--------------

在android手机上写脚本程序

首先去项目主页下载SL4A的最新版本安装到手机上,进入界面后点menu键->点View->点Interpreters->点menu键->点Add就会出现上图的情况了,然后选择你需要的脚本语言安装就可以了,其实这就是在安装解释器。安装完后,就会显示已经安装过的语言.

然后回到刚才的主页面就会发现系统已经自带了几个demo样例,可以运行试试,也可以开始写自己的脚本程序了。新的sl4a和以前的ase的图标并没有什么变化,具体变化还不是很明确.