DroidScript wiki

(was AndroidScript) unofficial documentation by the community

User Tools

Site Tools


built_in:shortcut

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

built_in:shortcut [2015/04/02 16:18] (current)
octazid created
Line 1: Line 1:
 +====== CreateShortcut ======
  
 +====Description====
 +Create a Shortcut on the Startscreen of your device using the **CreateShortcut** method of the [[built_in:​app|app]] object:
 +
 +<​code>​app.CreateShortcut(name,​ picturepath,​ scriptpath)</​code>​
 +
 +You can start a Scriptfile with just one click within Droidscript.
 +
 +====Example====
 +<code javascript>​
 +function OnStart()
 +{
 +app.CreateShortcut( "Hello World",​ "/​mnt/​sdcard/​DroidScript/​Hello World/​Img/​Hello World.png",​ "/​mnt/​sdcard/​DroidScript/​Hello World/Hello World.js"​ );
 +}
 +</​code>​
built_in/shortcut.txt ยท Last modified: 2015/04/02 16:18 by octazid