Touchkit Mobile presets icon

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?

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

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

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

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

Hi were you able to get the icon to your homescreen?

Yes Mark Foster.