Issue speciyying AppIcon for fenix3 device

I'm running into a problem specifying the icon for use with the fenix3 device. According to bin/devices.xml the AppIcon should be 40x40. I created a resource folder for the device, dropped in a 40x40 icon and tried to Build Project for Device. I was given the following compile error...

BUILD: ERROR: The specified icon is larger than the allowed icon size for fenix3


Weird. I replaced the 40x40 icon with a 25x25 icon, and I got this message...

BUILD: ERROR: The specified icon is larger than the allowed icon size for fenix3
BUILD: WARNING: The launcher icon 'AppIcon' (25x25) is smaller than the specified launcher icon size of the device 'fenix3' (40x40). Padding will be added to the image to center it.


The directory structure for my project looks like this...

+---resources
| | resources.xml
| | strings.xml
| |
| \---images
| icon.png
| bitmaps.xml
|
+---resources-fenix3
| \---images
| icon.png
| bitmaps.xml
|
+---resources-fr920xt
| \---images
| icon.png
| bitmaps.xml
|
\---source
TestApp.mc
TestView.mc


The body of bitmaps.xml looks like this...

<resources>
<bitmaps>
<bitmap id="AppIcon" filename="icon.png" />
</bitmaps>
</resources>


As far as I can tell, the resource compiler is trying to use the AppIcon from the default app folder (which is 61x43), which causes the error, and then later it is looking at the AppIcon from the device specific resource folder, which results in the warning.
  • I'm getting the same error when building for both the fenix3_sim and round_watch devices when building for the emulator.
  • Former Member
    Former Member over 10 years ago
    Thanks for the report. We'll look into this further.
  • Former Member
    Former Member over 10 years ago
    It looks like we were missing a device qualifier check. This should be fixed in the next release.
  • Ken,

    What exactly is the AppIcon used for? I hate spending a bunch of time building them without knowing why they are necessary.

    Travis
  • Former Member
    Former Member over 10 years ago
    Short answer:
    The app icons are used when displaying watch-apps inline with the native apps.

    Long answer:
    The app icon is used when an app is shown in a list on the device. The size specified in devices.xml is provided by the device teams themselves. I'm not sure on specifics of how each device will display icons other than watch-app icons are supposed to be displayed inline with the native apps. I've created an issue to look into how the icon might be affected by different app types. It's possible that an icon will only need to be/allowed to be specified for a watch-app project type.
  • Does that mean that there are no need for the icons for watch faces and data fields? We can just keep a blank icon of the correct size?
  • Former Member
    Former Member over 10 years ago
    I really can't say for sure until we have that figured out with the device teams. I would recommend including some sort of identifier in the icon in case you get a firmware update for a device and it starts showing the icon in a list of watch faces/data fields but for those app types you probably shouldn't focus on the icon as I don't think it's currently shown on any of the devices.
  • Former Member
    Former Member over 9 years ago
    try to change device.xml properties

    open:

    GarminSDK\bin\devices.xml

    search for correct device and change launcher_icon Prop:

    <launcher_icon width="218" height="218" />

    Ste