DroidScript wiki

(was AndroidScript) unofficial documentation by the community

User Tools

Site Tools



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 ======
 +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.
 +<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"​ );
built_in/shortcut.txt ยท Last modified: 2015/04/02 16:18 by octazid