How I can change My app name


#1

How I can change app name in android platform?


#2

In your apps config.xml. Take a look at http://docs.phonegap.com/en/4.0.0/config_ref_index.md.html


#3

I changed app name but when build app again automatic change to default, please you explain step by step!


#4

for example in android.
in config.xml

<name>App Name</name>

this will change app_name in platforms/android/res/values/strings.xml

<string name="app_name">App Name</string>

#5

after change name must build or no?


#6

when you do ionic run android, it will build it first and then deploy to device.

you can build it first and see if the stirings.xml change to whatever name you put in the config.xml


#7

When I build again reset app name to default name i.e. HelloCordova.


#8

can you post your config.xml code here?


#9
<?xml version="1.0" encoding="UTF-8" standalone="yes"?> Dooz An Ionic Framework and Cordova project. Ionic Framework Team

#10

"<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
"
Dooz

An Ionic Framework and Cordova project.


Ionic Framework Team




















#11

this is ile link
http://uplod.ir/pyg8digq8q02/config.rar.htm


#12


#13

weird, this should change your android app name to Dooz.
Can you check what’s ‘app_name’ in platforms/android/res/values/strings.xml file

<?xml version='1.0' encoding='utf-8'?>
<resources>
       <string name="app_name">my_app</string> <= did this change to Dooz?
        <string name="launcher_name">@string/app_name</string>
        <string name="activity_name">@string/launcher_name</string>
</resources>

and in platforms/android/AndroidMainifest.xml file

<application android:hardwareAccelerated="true" android:icon="@drawable/icon" android:label="@string/app_name" android:supportsRtl="true">

and

 <intent-filter android:label="@string/launcher_name">

#14

name same and this path file platforms/android/AndroidMainifest.xml:


#15

Can I change “launcher_name” for android in config.xml? String.xml rewrite in build, and changes manually lost .

Thanks


#16

you can modify launcher_name value in string.xml.
for example.

 <string name="launcher_name">@string/app_name</string>

to

 <string name="launcher_name">[Type Your New App Name Here]</string>

when you do this change, @string/launcher_name will not change when @string/app_name changes anymore.

===== OR ======


#17

You must change your project file name / config.xml tag and then must build your file. ionic build android if they do not change, you should change the name in config.xml, save your resource for android, remove and re-install the platform.


#18

Dont change app name while your app is running. It wont take changes.


#19

Step 1 : Change you App name in config.xml
Step 2 : Remove android platform
Step 3 : Add android platform
Step 4 : Build your apk file.


#20

I had to kill a leftover node.exe process that was still running (in Windows Task Manger). Only then did my config.xml changes stop reverting to default values.