How I can change app name in android platform?
In your apps config.xml. Take a look at http://docs.phonegap.com/en/4.0.0/config_ref_index.md.html
I changed app name but when build app again automatic change to default, please you explain step by step!
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>
after change name must build or no?
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
When I build again reset app name to default name i.e. HelloCordova.
can you post your config.xml code here?
"<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
"
Dooz
An Ionic Framework and Cordova project.
Ionic Framework Team
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">
Can I change “launcher_name” for android in config.xml? String.xml rewrite in build, and changes manually lost .
Thanks
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 ======
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.
Dont change app name while your app is running. It wont take changes.
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.
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.