[ 
https://issues.apache.org/jira/browse/CB-2606?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14092033#comment-14092033
 ] 

Amit Kucheria commented on CB-2606:
-----------------------------------

Just confirmed that it works with the following snippet in config.xml:

<platform name="android">
              <icon src="res/icon.png" density="ldpi" />
              <icon src="res/icon.png" density="mdpi" />
              <icon src="res/icon.png" density="hdpi" />
              <icon src="res/icon.png" density="xhdpi" />
</platform>

However, if I revert back to a single icon as follows (and remove any copies to 
platforms/android/res/drawable-* from previous runs) it fails to work:
<icon src="res/icon.png" />


> Add support for <icon> elements in config.xml
> ---------------------------------------------
>
>                 Key: CB-2606
>                 URL: https://issues.apache.org/jira/browse/CB-2606
>             Project: Apache Cordova
>          Issue Type: Wish
>          Components: Docs
>            Reporter: Filip Maj
>            Assignee: Mark Koudritsky
>
> This feature would add support for specifying the application icon by 
> changing values inside the {{config.xml}} document.
> Relevant details for Cordova:
> - {{<icon>}} elements _may_ have {{width}} and {{height}} attributes 
> representing the preferred size of the icon in CSS pixels.
> - {{<icon>}} elements _must_ have a {{src}} attribute, which contains a path 
> string relative to the {{www/}} folder (or equivalent) in the platform.
> See [the Widget Spec's section on 
> icons|http://www.w3.org/TR/widgets/#the-icon-element-and-its-attributes] for 
> specifics.



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Reply via email to