Tom Kincaid
Tom Kincaid

Reputation: 4975

Can't Change Android App Name in Settings

I created an app with the wizard in ADT Eclipse. I edited the app name in strings.xml. This changed the label on the launcher icon. However if I go into Settings > Apps, it shows the old name. I tried uninstalling the app, cleaning, and running again, but it still shows the old name in settings. The old app name string does not exist in any file in the project. I don't know where it's coming from. How can I get it so that settings shows the new app name?

strings.xml

<resources>
<string name="app_name">My New App Name/string>
...
</resources>

manifest.xml

<application
android:allowBackup="true"
android:icon="@drawable/ic_launcher"
android:label="@string/app_name"
android:theme="@android:style/Theme.Holo.Light" >
    <activity android:name=".Main">
        <intent-filter>
            <action android:name="android.intent.action.MAIN" />
            <category android:name="android.intent.category.LAUNCHER" />
        </intent-filter>
    </activity>
...
</application>

Upvotes: 6

Views: 4992

Answers (1)

MagicBeamer
MagicBeamer

Reputation: 256

Replace

<activity android:name=".Main">

By

<activity
    android:name=".Main"
    android:label="@string/app_name">

Upvotes: 5

Related Questions