Cordova keeps changing app name to 'Hello Cordova'

I have a cordova app for android that works fine, it compiles without any issues and I can also create an APK without any problems. However, whenever the app is installed on a device it's name show's up as 'Hello Cordova'

I've changed the <name> property in config.xml in the app's root directory to reflect the correct name but this does not seem to have any effect as everytime the app compiles config.xml in /platforms/android/res/xml/ overwrites the <name> property with Hello Cordova.

I've also tried to edit /platforms/android/res/values/strings.xml to reflect the correct name but that does not work either

`<?xml version='1.0' encoding='utf-8'?>
    <resources>
        <string name="app_name">Hello Cordova</string>
    </resources>`

How can I fix this so that I can set the name of the app so that when it is installed on a device it displays correctly?

Answers


changing the <name> parameter in /platforms/android/cordova/defaults.xml to the correct value has fixed the problem

<widget xmlns     = "http://www.w3.org/ns/widgets"
        id        = "io.cordova.helloCordova"
        version   = "2.0.0">
    <name>My App</name>

Need Your Help

Using the Tab key to navigate form inputs

asp.net forms navigation

I am having some problems with tabbing within my asp.net pages. This project was developed with Visual Studio 2008.

How do you put a DoubleClick ad on a WIX web site?

google-dfp

I'm trying to put a DoubleClick advertisement on a WIX web site. From everything I have read, this seems to require putting a Google code snippet in the &lt;head/&gt; section of a web page. Howev...