Ananth
Ananth

Reputation: 55

phonegap 3.4 unable to set an application name other than HelloWorld

I followed the docs and trying to create a new project with this command

phonegap create project --name "MyProject" --id "com.app.MyProject"

No matter how many times i try, the app is getting installed with "HellWorld" name. I had to explicitly change res/values/strings.xml to <string name="app_name">MyProject</string> to alter the app name on the device.

Thanks in advance

Upvotes: 1

Views: 139

Answers (1)

Teoman shipahi
Teoman shipahi

Reputation: 23132

The way I solve; I create project with 3.4 and then in adt I right clicked on the HelloWorld folder and refactor -> change name. I typed new application name. Even if adt have some null exception errors, I hit f5 a couple of times to refresh folders of newly created project. Then close and restarted the adt and voila! it started to work. And then I change application namespace from com.phonegap.helloworld -> com.mydomain.myappname. I know it is not logical but it is the way how I did. Hope this helps.

Upvotes: 2

Related Questions