You can clone with
1. Specify 2 icons in config.xml, e.g.:<icon src="img/state/default_i_off.png" /><icon src="img/state/default_i_on.png" rim:hover="true" />
2. Build the app
<icon src="img/state/default_i_off.png" />
<icon src="img/state/default_i_on.png" rim:hover="true" />
The following warning is displayed twice during packaging:
[WARN] Warning: Cannot find application or default icon
Also, after the application is installed, its icon does not appear.
This issue could be resolved once the following user story is implemented: #110
Build: \CI0000000094259.rim.net\Share\SCM Builds\BlackBerry Webworks SDK for BB10 1.0.0 Bundle 7
@ishneur instead of putting links to issues you should refer to them using this syntax - blackberry/BB10-Webworks-Packager#110.
This creates a link in the issue you refering to so, when someone looks at the User Story they will know that you are expecting this bug to fixed with it. Let me know if you have questions regarding this.
Thanks for filing this.
Remove the second <icon> element from the config.xml file:
Note: Any developer trying to build the bbUI.js sample application will currently encounter this issue.
I assume this is no longer an issue with this release?
It doesn't happen anymore in SCM build 188.8.131.52.
I my config.xml I specified this:<icon src="tire.png" /><icon src="bulbon.gif" rim:hover="true" />
<icon src="tire.png" />
<icon src="bulbon.gif" rim:hover="true" />
There were no warnings during packaging.
At runtime, it shows the second icon (bulbon.gif) and not the first one. These icons differ in size - tire.png is 64x64 and bulbon.gif is 100x180, maybe that's the reason.
Curious if bulbon.gif would still be selected if the ordering of the elements was reversed? If it is bigger, then I kind of hope it will continue to be chosen (means the packager is doing its thing and picking the best fit for the BB10 home screen).
It still selects bulbon.gif after I reversed the order, with or without rim:hover="true".
BB10 packager totally ignores the rim:hover attribute, it doesn't care whether it's true or false or unspecified. And it's the BB10 OS that selects which icon to display. The packager just specifies all the icons (in the bar-descriptor.xml).