I have an Android App with 2 activities. I have the following in the AndroidManifest:
<application android:icon="@drawable/icon" android:label="@string/app_name" android:debuggable="false">
<activity android:name=".MyCellTracker" android:label="@string/activity1_name">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
<activity android:name=".DisplaySuccess" android:label="@string/activity2_name"></activity>
The activities are properly named, yet the application is using the project name rather than the android:label (@string/app_name) I have given it. If I go to delete the application, then I see that it is named using the android:label. Why is the name that is displayed under the icon on the program launcher not using android:label in the application node?
This may not be the answer you’re looking for, but you can set the activity title using
setTitle(string title).Set the title programmatically, and set the app title in the
manifest.xmlusing the main activity’s label.