Change application name and label

Renjith picture Renjith · Jul 27, 2011 · Viewed 31.7k times · Source

Installer window

I would like to change the application name and label in the installer window (see the attached image). Name and label is, by default, the package name. Even though I added custom name and label in AndroidManifest.xml, it is not reflected in this installer window.

AndroidManifest.xml is given below.

<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
  package="com.style"
  android:versionCode="1"
  android:versionName="1.0">
<uses-sdk android:minSdkVersion="10" />

<application android:icon="@drawable/icon" 
            android:label="@string/app_name">
    <activity android:name=".StylePageActivity"
              android:label="@string/app_name">
        <intent-filter>
            <action android:name="android.intent.action.MAIN" />
            <category android:name="android.intent.category.LAUNCHER" />
        </intent-filter>
    </activity>

</application>
</manifest>

And the custom name in strings.xml (or /res/values/base-strings.xml) is

<string name="app_name">Demo Application</string>

Answer

sparkymat picture sparkymat · Jul 27, 2011

You can change the name (or package) of your application in AndroidManifest.xml in the <manifest package="..." part and you can change the name of the app by changing the android:label attribute in the <application> tag in the same file.

Please note that changing the package of your application essentially registers as a totally different application from the previous one (as far as Android is concerned).