Monthly Archives: May 2012

Execute SL4A scripts from command line

$ am start -a com.googlecode.android_scripting.action.LAUNCH_BACKGROUND_SCRIPT -n com.googlecode.android_scripting/.activity.ScriptingLayerServiceLauncher -e com.googlecode.android_scripting.extra.SCRIPT_PATH
/sdcard/sl4a/scripts/${1}

Source: http://a-more-common-hades.blogspot.com.br/2011/04/shell-launcher-for-sl4a-scripts.html