-1

I can't figure out the source for my app's name.

I have the typical app_name string, used for Application's label and MainActivity's label. For what I know this is the only source for the app's name and label on the launcher.

I had a "Old App Name", which I changed to "New App Name", but this edit is not reflected on the device. I checked the generated resources in build/intermediates and it says "New App Name". At one point in the development I tried using gradle to generate the resource app_name following this answer, it didn't work (I guess the cause is the same).

I performed a search in the entire project, no "Old App Name" string came up.

I thought of a system cache on my devices that holds up to the hold name, so I created a new device in Genymotion. Still "Old App Name".

Where should I look?

AndroidManifest.xml

<application
    android:name=".App"
    android:allowBackup="true"
    android:icon="@mipmap/ic_launcher"
    android:label="@string/app_name"
    android:supportsRtl="true"
    android:theme="@style/AppTheme">

<string name="app_name">New App Name</string>
Community
  • 1
  • 1
David Corsalini
  • 7,958
  • 8
  • 41
  • 66

1 Answers1

1

app_name could be used by a library you are using and mistakenly being populated from there.

Create a new field for the apps name and use that instead to avoid the issue entirely e.g

<string name="My_unique_app_name">New App Name</string>
Kuffs
  • 35,581
  • 10
  • 79
  • 92