Hello World

This method creates a shortcut of an app on your home screen - referencing to a js file runnable with DS.

app.CreateShortcut( name, iconFile, file, options )

Note: since Android 9 this method prompts a system dialog

Example - Demo

function OnStart()
    var file = app.GetAppPath() + "/" + app.GetAppName() + ".js";
    app.CreateShortcut( "Demo", "/Sys/Img/Icon.png", file );

    app.ShowPopup( "Add Shortcut" );
    Copy     Copy All       Run      
string: path to file or folder ( “/absolute/...” or “relative/...” )
string: comma “,” separated: “Portrait” or “Landscape”, “Transparent”, “NoDom”, Debug, Game or “remote”