changing the app icon

852 views
Skip to first unread message

Globally Evangelist

unread,
Aug 8, 2016, 10:50:34 PM8/8/16
to DroidScript
How do you change what icon the app displays with on your phone? Does droidscript provide a way to change the icon displayed after building with APK

Steve Garman

unread,
Aug 8, 2016, 11:25:19 PM8/8/16
to DroidScript
If you want to change your App icon, you will need to copy a .png image file to your App's Img assets folder. The name of the image file should be the same as your App name, e.g.

/sdcard/DroidScript/MyApp/Img/MyApp.png

The easiest way to do this is from the assets tab in the Wifi IDE - http://wiki.droidscript.me.uk/doku.php?id=getting_started:wifi_ide#using_uploaded_images

Once the apk is built, there is no straightforward way to change the main icon

Globally Evangelist

unread,
Aug 9, 2016, 9:48:09 AM8/9/16
to DroidScript
okay so if I create an app called produce.js and in the img folder I change the icon to produce.png then next time I build an APK with it the icon will be the produce.img instead of the droidscript default icon?

Globally Evangelist

unread,
Aug 9, 2016, 9:48:51 AM8/9/16
to DroidScript
I meant it will be produce.png for the icon. Am I correct?
Message has been deleted

Steve Garman

unread,
Aug 9, 2016, 9:55:15 AM8/9/16
to DroidScript
The folder should be called Img with a capital I

You can tell if is in the right place by shutting down DroidScript and restarting it.

The project produce should then show that icon in the main DroidScript screen

Alex F

unread,
Aug 9, 2016, 9:55:36 AM8/9/16
to DroidScript
If you restart ds or rename a file in ds the thumbnail will be shown in the main layout. If you make the spk or apk it will be added when the png file exists- so you dont need to reload

Netpower8

unread,
Aug 9, 2016, 9:56:00 AM8/9/16
to DroidScript
Well infact if you reload droidscript you will see the icon you use on the droidscript. And if you build the apk it will use that png icon for your apk. And thus the png icon will be displayed in android launcher not the default ds icon

Globally Evangelist

unread,
Aug 9, 2016, 11:08:55 AM8/9/16
to DroidScript
Thank you so much! and sorry for the multiple repetitions of this inquiry. I kept getting errors when I tried to post to the forum and finally tried sending an email. I didn't see the question post until this morning and saw it was in there three times.
Reply all
Reply to author
Forward
0 new messages