public static Intent buildTerminalShortcutIntent(File script,Parcelable iconResource){
  Intent intent=new Intent();
  intent.putExtra(Intent.EXTRA_SHORTCUT_INTENT,buildStartInTerminalIntent(script));
  intent.putExtra(Intent.EXTRA_SHORTCUT_NAME,script.getName());
  intent.putExtra(Intent.EXTRA_SHORTCUT_ICON_RESOURCE,iconResource);
  return intent;
}

public static Intent buildTerminalShortcutIntent ( File script , Parcelable iconResource ) { Intent intent = new Intent ( ) ; intent . putExtra ( Intent . EXTRA_SHORTCUT_INTENT , buildStartInTerminalIntent ( script ) ) ; intent . putExtra ( Intent . EXTRA_SHORTCUT_NAME , script . getName ( ) ) ; intent . putExtra ( Intent . EXTRA_SHORTCUT_ICON_RESOURCE , iconResource ) ; return intent ; }
builds an intent that creates a shortcut to launch the provided script in a terminal .
