HI,
Droidscript.js has
else if( item==T("CreateShortcut") )
{
var file = appPath+"/"+curProgram+"/"+curProgram+".js";
var iconFile = appPath+"/"+curProgram+"/Img/"+curProgram+".png";
if( !app.FileExists( iconFile ) ) iconFile = "/assets/Img/Icon.png";
Which implies the icon should be one of those two paths
And
if( src.indexOf("app.CreateShortcut") > -1 ) AddPermission("Shortcut");
So it might be worth trying _AddPermission
On Android 15 it adds the shortcut,
and touching the icon on Android Home works
Regards, ah
function OnStart() {
lay = app.CreateLayout( "Linear", "VCenter,FillXY" )
txt = app.AddText(lay,"app.GetNavBarHeight() "+app.GetNavBarHeight())
txt = app.AddText(lay,"app.HasSoftNav() "+app.HasSoftNav())
txt = app.AddText(lay,"app.IsNavBarOnRight() " +app.IsNavBarOnRight())
// txt = app.AddText(lay,"app.HasNavBar() ",app.HasNavBar())
app.AddLayout( lay )
var file = app.GetAppPath() + "/" + app.GetAppName() + ".js";
app.CreateShortcut( "Demo", "/Sys/Img/Icon.png", file );
}