|
| 1 | +Scripting Layer for Android (SL4A) brings scripting languages to Android by |
| 2 | +allowing you to edit and execute scripts and interactive interpreters directly |
| 3 | +on the Android device. These scripts have access to many of the APIs available |
| 4 | +to full-fledged Android applications, but with a greatly simplified interface |
| 5 | +that makes it easy to get things done. |
| 6 | +Scripts can be run interactively in a terminal, in the background, or via |
| 7 | +\[http://www.androidlocale.com/ Locale\]. Python, Perl, JRuby, Lua, !BeanShell, |
| 8 | +!JavaScript, Tcl, and shell are currently supported, and we're planning to add |
| 9 | +more. See the \[http://www.youtube.com/playlist?list=PL07A81E6CE96F158B SL4A |
| 10 | +Video Help\] playlist on !YouTube for various demonstrations of SL4A's features. |
| 11 | +SL4A is designed for developers and is \_alpha\_ quality software. Please report |
| 12 | +bugs and feature requests on the |
| 13 | +\[http://code.google.com/p/android-scripting/wiki/Issues?tm=3 issues list\]. You |
| 14 | +can download the current APK by scanning or clicking the following barcode: |
| 15 | +\[http://android-scripting.googlecode.com/files/sl4a\_r6.apk |
| 16 | +http://chart.apis.google.com/chart?cht=qr&chs=200x200&chl=http://android-scripting.googlecode.com/files/sl4a\_r6.apk&nonsense=something\_that\_ends\_with.png\] |
| 17 | + |
| 18 | +To install SL4A, you will need to enable the "Unknown sources" option in your |
| 19 | +device's "Application" settings. |
| 20 | +Still have questions? Check out the \[FAQ\], |
| 21 | +\[http://groups.google.com/group/android-scripting discussion list\], or join |
| 22 | +\#sl4a on freenode. |
| 23 | + |
| 24 | +== Want to learn more? == |
| 25 | +Start by reading |
| 26 | +\[http://android-scripting.googlecode.com/files/Practical\_Android\_Projects\_Ch05\_Introducing\_SL4A.pdf |
| 27 | +"Introducing SL4A: The Scripting Layer for Android"\] by Pieter Greyling and |
| 28 | +\[http://android-scripting.googlecode.com/files/Pro\_Android\_Python\_with\_SL4A\_Ch10\_Packaging\_and\_Distributing.pdf |
| 29 | +"Packaging and Distributing"\] by Paul Ferrill. These are the intellectual |
| 30 | +property of Apress and are excerpt from the books "Practical Android Projects" |
| 31 | +and "Pro Android Python with SL4A." |
| 32 | +You can buy "Practical Android Projects" on |
| 33 | +\[http://www.amazon.com/exec/obidos/ASIN/1430232439/ref=nosim/apre-20 Amazon\] |
| 34 | +or directly from \[http://apress.com/book/view/9781430232438 Apress\]. |
| 35 | +Apress is happy to provide 25% off the price of the "Practical Android Projects" |
| 36 | +eBook. Simply enter the special code "SL4APROJECTROCKSHLDD" upon checkout when |
| 37 | +purchasing the eBook \[http://www.apress.com/book/view/1430232439 here\]. Offer |
| 38 | +expires 12/30/11\. |
| 39 | +You can buy "Pro Android Python with SL4A" directly from |
| 40 | +\[http://www.apress.com/9781430235699 Apress\]. |
| 41 | +Apress is also happy to provide 25% off the price of the "Pro Android Python |
| 42 | +with SL4A" eBook. Simply enter the special code "THESL4APROJECTROCKS" upon |
| 43 | +checkout when purchasing the eBook \[http://www.apress.com/9781430235699 here\]. |
| 44 | +Offer expires 12/30/11\. |
| 45 | + |
| 46 | +== What's Powered by SL4A? == |
| 47 | +Want to see SL4A in action? Check out some of these cool SL4A powered projects: |
| 48 | + |
| 49 | +=== Rockets === |
| 50 | +SL4A was used by the Nexus One payload for sensor logging. See the |
| 51 | +\[http://blog.makezine.com/archive/2010/07/nexus\_onearduino\_smallsat\_satellite.html |
| 52 | +article in Make\] for more information about the project. |
| 53 | + |
| 54 | +=== Cellbots === |
| 55 | +We are a collection of hobbyists who want to free your cell phone from your |
| 56 | +pocket and let it connect and move with the real world. How? As a robot of |
| 57 | +course! |
| 58 | +Cellbots aren't just about using your phone to control a robot (which is cool |
| 59 | +too), but we aim on making your phone be the robot. It already has touch, |
| 60 | +hearing, speech, vibration, and many more senses, but needs legs (or wheels) to |
| 61 | +finally be the free roaming robot it was born to be. |
| 62 | +See the \[http://www.cellbots.com/ Cellbots blog\] or |
| 63 | +\[http://www.youtube.com/user/cellbots YouTube channel\] for more. |
| 64 | + |
| 65 | +=== Oplop === |
| 66 | +Using a single master password and various account names, one can create an |
| 67 | +infinite number of unique account passwords. These unique account passwords are |
| 68 | +commonly called password hashes, domain-specific passwords, or per-site |
| 69 | +passwords. |
| 70 | +See the \[http://code.google.com/p/oplop/ Oplop\] project page for more |
| 71 | +information. |
| 72 | + |
| 73 | +=== Broadcast === |
| 74 | +Broadcast is an embedded web application for remote Android device management. |
| 75 | +Broadcast has four goals: |
| 76 | +\* Remote monitoring: Make Android state and device data available over a |
| 77 | +network. |
| 78 | +\* Remote control: Allow remote control of an Android device over a network. |
| 79 | +\* Proof-of-concept: Demonstrate that complex ruby applications can run in an |
| 80 | +Android environment, even with constrained resources. |
| 81 | +\* Framework: Set the groundwork for a number of advanced applications. |
| 82 | +See \[http://github.com/mleone/broadcast/ the project homepage\], this |
| 83 | +\[http://www.slideshare.net/panopticdev/broadcast-presentation presentation\], |
| 84 | +and this \[http://i52.tinypic.com/w9zfh4.jpg screenshot\] for more information. |
| 85 | + |
| 86 | +=== SMS Merger === |
| 87 | +SMS Merger is an excellent example of what can be done with Python and the |
| 88 | +!WebView API. SMS Merger is designed to send a series of personalized SMS. For |
| 89 | +example, to let Antony, Bob and Claire know which seat number they have been |
| 90 | +allocated for their exams, SMS Merger can turn a CSV file into the following SMS |
| 91 | +messages: |
| 92 | +Dear Antony, your seat is A1 |
| 93 | +Dear Bob, your seat is M4 |
| 94 | +Dear Claire, your seat is M2 |
| 95 | +See |
| 96 | +\[http://3.bp.blogspot.com/\_No4Im6k15Dw/TPDSlM\_2ihI/AAAAAAAAAQA/pDxcy9w08vM/s1600/file-tab-with-preview.png |
| 97 | +these\] |
| 98 | +\[http://2.bp.blogspot.com/\_No4Im6k15Dw/TPDRiWnxk1I/AAAAAAAAAPo/o3ZhUsGgA\_A/s1600/merge-tab.png |
| 99 | +screenshots\] and \[http://android-scripting.blogspot.com/ Frank's blog\] for |
| 100 | +more information. |
| 101 | + |
| 102 | +---- |
| 103 | + |
| 104 | +Have a project you'd like to see listed here? Tell us about it on the |
| 105 | +\[http://groups.google.com/group/android-scripting mailing list\]. |
0 commit comments