Scripting Layer for Android (SL4A)

 http://code.google.com/p/android-scripting/

    无意之中发现了SL4A,感觉这个技术确实不错,值得看一看学习一下,现将英文资料记录一下,有时间就翻译一下。

    SL4A就是用脚本语言编写Android应用程序,例如脚本Python,Ruby,Perl,Javascript等。

Scripting Layer for Android (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, in the background, or via Locale. Python, Perl, JRuby, Lua, BeanShell, JavaScript, Tcl, and shell are currently supported, and we're planning to add more. See theSL4A Video Help playlist on YouTube for various demonstrations of SL4A's features.

SL4A is designed for developers and is alpha quality software. Please report bugs and feature requests on theissues list. You can download the current APK by scanning or clicking the following barcode:

 

 

To install SL4A, you will need to enable the "Unknown sources" option in your device's "Application" settings.

Still have questions? Check out the FAQ, discussion list, or join #sl4a on freenode.

Want to learn more?

Start by reading "Introducing SL4A: The Scripting Layer for Android" by Pieter Greyling and "Packaging and Distributing" by Paul Ferrill. These are the intellectual property of Apress and are excerpt from the books "Practical Android Projects" and "Pro Android Python with SL4A."

You can buy "Practical Android Projects" on Amazon or directly from Apress.

Apress is happy to provide 25% off the price of the "Practical Android Projects" eBook. Simply enter the special code "SL4APROJECTROCKSHLDD" upon checkout when purchasing the eBookhere. Offer expires 12/30/11.

You can buy "Pro Android Python with SL4A" directly from Apress.

Apress is also happy to provide 25% off the price of the "Pro Android Python with SL4A" eBook. Simply enter the special code "THESL4APROJECTROCKS" upon checkout when purchasing the eBookhere. Offer expires 12/30/11.

What's Powered by SL4A?

Want to see SL4A in action? Check out some of these cool SL4A powered projects:

Rockets

SL4A was used by the Nexus One payload for sensor logging. See the article in Make for more information about the project.

 

 

Cellbots

We are a collection of hobbyists who want to free your cell phone from your pocket and let it connect and move with the real world. How? As a robot of course!

Cellbots aren’t just about using your phone to control a robot (which is cool too), but we aim on making your phone be the robot. It already has touch, hearing, speech, vibration, and many more senses, but needs legs (or wheels) to finally be the free roaming robot it was born to be.

See the Cellbots blog orYouTube channel for more.

Oplop

Using a single master password and various account names, one can create an infinite number of unique account passwords. These unique account passwords are commonly called password hashes, domain-specific passwords, or per-site passwords.

See the Oplop project page for more information.

Broadcast

Broadcast is an embedded web application for remote Android device management. Broadcast has four goals:

  • Remote monitoring: Make Android state and device data available over a network.
  • Remote control: Allow remote control of an Android device over a network.
  • Proof-of-concept: Demonstrate that complex ruby applications can run in an Android environment, even with constrained resources.
  • Framework: Set the groundwork for a number of advanced applications.

See the project homepage, thispresentation, and this screenshot for more information.

SMS Merger

SMS Merger is an excellent example of what can be done with Python and the WebView API. SMS Merger is designed to send a series of personalized SMS. For example, to let Antony, Bob and Claire know which seat number they have been allocated for their exams, SMS Merger can turn a CSV file into the following SMS messages:

Dear Antony, your seat is A1 Dear Bob, your seat is M4 Dear Claire, your seat is M2

See these screenshots and Frank's blog for more information.

 

 

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值