It's a bit outdated, but I came here to find the answer to this question, and I found it, so I decided that I should share it with someone else, Google Googling, the same as me.
When you send the intent of Android to run a script in SL4A, you can specify any script in the file system. You can write a script to eliminate this intention (or an application if you like it). Here is an example in Python:
import android droid = android.Android() activity = 'com.googlecode.android_scripting.action.LAUNCH_BACKGROUND_SCRIPT' extras = {} extras['com.googlecode.android_scripting.extra.SCRIPT_PATH'] = '/any/script/you/like.py' packagename = 'com.googlecode.android_scripting' classname = 'com.googlecode.android_scripting.activity.ScriptingLayerServiceLauncher' intent = droid.makeIntent(activity, None, None, extras, None, packagename, classname).result droid.startActivityIntent(intent)
I took this into account to make it easier (I hope) to see what happens. If you call getIntent () from a script, it will show you the anatomy of the intent that calls it. This is how I understood it.
source share