How to name an Android app

I have an android app with two actions. In AndroidManifest , I have the following:

 <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 actions are correctly named, but the application uses the project name, not android:label (@ string / app_name), which I gave it. If I go to uninstall the application, I see that it is called using android:label . Why is this name displayed under the icon on the program launch bar without using android:label in the node application?

+6
android
source share
2 answers

This may not be the answer you are looking for, but you can set the action title using setTitle(string title) .

Name the programmatically and set the application title to manifest.xml using the label of the main action.

+4
source share

According to this link:

http://developer.android.com/guide/topics/manifest/activity-element.html#label

this is a shortcut to the main activity. However, if you do not set the label in action, the application label is executed.

0
source share

All Articles