Table of Contents

CreateShortcut

Description

Create a Shortcut on the Startscreen of your device using the CreateShortcut method of the app object:

app.CreateShortcut(name, picturepath, scriptpath)

You can start a Scriptfile with just one click within Droidscript.

Example

function OnStart()
{
app.CreateShortcut( "Hello World", "/mnt/sdcard/DroidScript/Hello World/Img/Hello World.png", "/mnt/sdcard/DroidScript/Hello World/Hello World.js" );
}