<icon>

Specify a custom icon for an HTML5 app.

Syntax:

<icon src="string" />

Description:

The icon specified by the <icon> element's src attribute identifies your app on the Home screen of your target system.

The specified icon must meet the requirements for custom or default icons. The icon image should be 24-bit PNG format with an alpha channel. If you use the icon on the HMI (Home Screen), it should be 86x86 pixels in size. If you don't specify an icon for your app, the app appears with only the text specified by its <name> element.

Occurrences:

Zero or more.

Parent elements:

<widget>

Child elements:

None.

Content:

None.

Attributes:

You can define the following attributes for this element:

Attribute Description
src

Specifies the path for an image file packaged in the .bar file.

This attribute is required.

Example:

In the config.xml file, we include the following entries:
<icon src="icon-86x86.png" />