Requested for Shortcuts

45 views
Skip to first unread message

Soni Kumari

unread,
Jul 21, 2026, 10:32:09 AM (5 days ago) Jul 21
to DroidScript
Please developer, it is requested to one of you to help me with app.CreateShortcut() 
I used all possible logic, missing permission but i didn't work
Without this feature my app remain featureless 
Please once try and provide me spk or codes here
Thanks regards 

Jumar

unread,
Jul 21, 2026, 12:08:44 PM (5 days ago) Jul 21
to DroidScript
Try providing actual paths rather than relative paths:

function OnStart()
{
    var appPath = app.GetAppPath()
    app.CreateShortcut( "Demgvo", appPath+"/Img/App Demo.png",appPath+"/j.html" )
}

Or this real path one:

function OnStart()
{
    var appPath = app.RealPath(app.GetAppPath())
    app.CreateShortcut( "Demgvo", appPath+"/Img/App Demo.png",appPath+"/j.html" )

Jumar

unread,
Jul 21, 2026, 12:09:11 PM (5 days ago) Jul 21
to DroidScript
Also please try to remove the space in your image file name.

Alan Hendry

unread,
Jul 21, 2026, 12:14:28 PM (5 days ago) Jul 21
to DroidScript
HI,
In your app you can have Img/app-icon.png or 
Img/your-app-name.png which appear on the DS home screen.
When you submit your app to the Play Store you can provide icon.
When a user installs your app an icon will appear in the list of apps
and (depending on the users settings) on their Android home page.
What version of DS is this?
2.77b2 - Fixed IDE 'Create Shortcut' error always showing on Android 26+.
What parms are you passing? The example has
function OnStart() {
    var file = app.GetAppPath() + "/" + app.GetAppName() + ".js";
    app.CreateShortcut( "Demo", "/Sys/Img/Icon.png", file );
    app.ShowPopup( "Add Shortcut" );
}
Regards, ah

Soni Kumari

unread,
Jul 23, 2026, 3:09:43 AM (4 days ago) Jul 23
to DroidScript
Still not working,
I just want a small code of spk please 🥺 

Reply all
Reply to author
Forward
0 new messages