我使用ADT Eclipse中的向导创建了一个应用程序。我在strings.xml中编辑了应用程序名称。这更改了启动器图标上的标签。但是,如果我进入“设置”>“应用程序”,它将显示旧名称。我尝试卸载该应用程序,进行清洁并再次运行,但是它仍然在设置中显示旧名称。项目中的任何文件中都不存在旧的应用程序名称字符串。我不知道它从哪里来。如何获取以便设置显示新的应用名称?
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>
最佳答案
代替
<activity android:name=".Main">
经过
<activity
android:name=".Main"
android:label="@string/app_name">
关于android - 无法在设置中更改Android应用名称,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/19716643/