Shortcut files show blank

68 views
Skip to first unread message

Soni Kumari

unread,
Jul 13, 2026, 12:28:33 PM (4 days ago) Jul 13
to DroidScript
Why shortcuts app.CreateShortcut() doesn't work for html file? 
It is work on ide but when i build my apk it will show blank after creating shortcuts when i open the shortcuts 


Any way to fix it please?

Thanks regards 
Soni!

Dave

unread,
Jul 14, 2026, 6:34:26 AM (3 days ago) Jul 14
to DroidScript
You are probably using an invalid icon file path.  Icon paths should be relative to your code folder.

Show us a snippet of your code and we might be able to spot the issue for you.

Message has been deleted
Message has been deleted

Soni Kumari

unread,
Jul 14, 2026, 6:54:39 AM (3 days ago) Jul 14
to DroidScript
function OnStart()
{
   
    app.CreateShortcut( "Demgvo", "Img/App Demo.png","j.html" );
    app.ShowPopup( "Add Shortcut" );
    
    
}

And j.html is also added in file 

Dave

unread,
Jul 14, 2026, 7:20:42 AM (3 days ago) Jul 14
to DroidScript
APKs are case sensitive, make sure you are using the correct case for the png file name.

Also, you could try replacing the space with an underscore as it's possible Android does not like spaces in shortcut icon paths.

Soni Kumari

unread,
Jul 14, 2026, 7:28:03 AM (3 days ago) Jul 14
to DroidScript
Thanks dave! 
But still it is not not working after apk build 
It is work on ide but not own apk 

Is the any demo code as spk?

Dave

unread,
Jul 14, 2026, 9:12:44 AM (3 days ago) Jul 14
to DroidScript
Did you try removing the space from the png file so it's just "AppDemo.png" ?

Dave

unread,
Jul 14, 2026, 9:15:25 AM (3 days ago) Jul 14
to DroidScript
Also, you might need to put _AddPermissions( "Shortcut" ) in your main html file if you are adding the shortcut from a file in a sub-folder of the project

Soni Kumari

unread,
Jul 14, 2026, 1:48:38 PM (3 days ago) Jul 14
to DroidScript
I did everything but i don't know why it isn't working 😔 

Dave

unread,
Jul 15, 2026, 8:20:35 AM (2 days ago) Jul 15
to DroidScript
I think some phone models have a special permission setting "Allow Shortcut Creation" or similar and need manual approval.  Check in your settings.

What device do you have and what version of Android is it?

Soni Kumari

unread,
Jul 15, 2026, 8:26:32 AM (2 days ago) Jul 15
to DroidScript
IQOO z10x 
Android 16

If you can share spk i would really appreciate, it might be, I'm making mistakes 

Reply all
Reply to author
Forward
0 new messages