public static Intent buildStartInTerminalIntent(File script){
  final ComponentName componentName=Constants.SL4A_SERVICE_LAUNCHER_COMPONENT_NAME;
  Intent intent=new Intent();
  intent.setComponent(componentName);
  intent.setAction(Constants.ACTION_LAUNCH_FOREGROUND_SCRIPT);
  intent.putExtra(Constants.EXTRA_SCRIPT_PATH,script.getAbsolutePath());
  return intent;
}

public static Intent buildStartInTerminalIntent ( File script ) { final ComponentName componentName = Constants . SL4A_SERVICE_LAUNCHER_COMPONENT_NAME ; Intent intent = new Intent ( ) ; intent . setComponent ( componentName ) ; intent . setAction ( Constants . ACTION_LAUNCH_FOREGROUND_SCRIPT ) ; intent . putExtra ( Constants . EXTRA_SCRIPT_PATH , script . getAbsolutePath ( ) ) ; return intent ; }
builds an intent that launches a script in a terminal .
