in this post I wanna give you a short introduction how you can launch scripts (specifically python scripts) from your android application.
To follow this tutorial you have to have SL4A installed on your device / emulator.
In case you don’t know SL4A, you can check my previous post on that: https://norwied.wordpress.com/2012/03/28/scripting-on-android/ and I also found another quite good tutorial on how to install SL4A here: https://www.ibm.com/developerworks/opensource/library/mo-python-sl4a-1/index.html
so in this post I wanna tell you how you can use your favourite scripting language to write programs that run on your Android mobile phone. You know the typical way to program apps for android is writing them in java using the Android SDK. In combination with eclipse and the android development plug-in for eclipse that’s one of the easiest way to start your Android development.
But if you are not familiar with Java you probably have some difficulties to get along with learning Java first, before you can begin developing for Android.
In this post I show you a way you can use scripting languages and start directly with Android development
There is a framework you need to install on your phone called “SL4A” (Scripting Layer for Android)
Currently (MAR2012) the following Scripting Languages are supported:
- BeanShell 2.0b4
- Lua 5.1.4
- PHP 5.3.3
- Perl 5.10.1
- Python 2.6.2
- Rhino 1.7R2