cordova-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Axel Nennker <>
Subject Started Implementing CB-2606 Add support for <icon in config.xml
Date Fri, 20 Dec 2013 13:56:02 GMT

I started to implement CB-2606

The code is here:

changes the config_parser to support the icon element.

On Android using this config_parser might be used like this:
Currently the src attribute from the icon element in config.xml is relative
to www.
 <?xml version='1.0' encoding='utf-8'?>
<widget id="com.example.hello" version="0.0.1" xmlns="" xmlns:cdv="">
        A sample Apache Cordova application that responds to the
deviceready event.
    <author email="" href="">
        Apache Cordova Team
    <content src="index.html" />
    <access origin="*" />
    <icon src="icon.png" cdv:platform="android"/>
    <icon src="icon.png" cdv:platform="android" cdv:density="ldpi"/>
    <icon src="icon.png" cdv:platform="android" cdv:density="mdpi"/>
    <icon src="icon.png" cdv:platform="android" cdv:density="hdpi"/>
    <icon src="icon.png" cdv:platform="android" cdv:density="xhdpi"/>
    <preference name="test" value="android"/>

I started to write some tests but some fail although I don't know why. It
works with Cordovas HelloWorld and the new config.xml anyway. I need help
with the tests.


ps: It is a little strange that I have to specify all densities to
overwrite the default icon. Maybe the default icon should not be there in
the first place?

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message