Mahmood1
(Mahmood shaik)
September 30, 2014, 1:03pm
1
Hi
I’m developing a vaadin touchkit application. I want to set icon for the Mobile preset. I’m doing it in this manner.
[b]
TouchKitSettings s = getTouchKitSettings();
s.getWebAppSettings().setWebAppCapable(true);
String contextPath = getServletConfig().getServletContext().getContextPath();
s.getWebAppSettings().setStartupImage(contextPath + “/VAADIN/themes/mytheme/startup.png”);
s.getApplicationIcons().addApplicationIcon(contextPath + “/VAADIN/themes/mytheme/iceicon.png”);
[/b]
I’m not getting the icon and not even the startup image. I have kept the images in the required folder.
Am i missing something? Where is my mistake?
Jonatan
(Jonatan Kronqvist)
October 1, 2014, 10:26am
2
Mahmood,
Your code looks quite correct. Just to be clear: you won’t see this icon or startup image unless you add the app to the home screen, could this be the source of the confusion?
/Jonatan
Mahmood1
(Mahmood shaik)
October 8, 2014, 4:49am
3
Hi Jonatan,
Thanks for reply. I have added the app to homescreen. It is not showing the icon(which i want). It is showing some default icon.
Thanks
Jonatan
(Jonatan Kronqvist)
October 8, 2014, 8:16pm
4
Mahmood,
Try to access the icon image by navigating to http://your-server/ /VAADIN/themes/mytheme/iceicon.png, I suspect the issue might be that the icon is actually available from http://your-server/VAADIN/themes/mytheme/iceicon.png instead of the first one.
If not, could you please tell me the dimensions and color depth of your icon image?
HTH,
/Jonatan
Mahmood1
(Mahmood shaik)
October 11, 2014, 3:55am
5
Jonatan,
The issue got solved after building and deploying the project. Now i can get the icon image. I guess it was unable to recognize the file during production.
Thank you,
Mahmood
Mark174
(Mark Foster)
November 26, 2014, 11:13am
6
Hi were you able to get the icon to your homescreen?