title: Launch an SL4A script from an SL4A script
body: <p>I would like to start a background SL4A script (on a remote device) from within a different SL4A script. I can launch a script from a terminal by running something like this:</p>
  
  <pre><code>$ 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/main.py
  </code></pre>
  
  <p>I can't translate this into a <code>startActivity</code> call in Python.</p>
  
  <p>The answer to <a href="https://stackoverflow.com/questions/12737150/launch-android-app-from-sl4a-script">a different question</a> on opening a Twitter client works nicely, but I don't know how to extend that code. For example, how would you add a script path, and where would you put the line <code>com.googlecode.android_scripting/.activity.ScriptingLayerServiceLauncher</code>?</p>