Reputation: 503
I have installed the Android App on which I am currently working on my ASUS tablet, running 4.0.3
However, I must have accidentally deleted something in the Manifest.xml, because there is no words below the app icon. In other words, the app name is not appearing below the app icon on my device, and, as such, it is sorted in the All Apps screen in the wrong place.
Here is the relevant section of my manifest:
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="tra.games.mytaboo"
android:versionCode="1"
android:versionName="1.2.1" >
<uses-sdk
android:minSdkVersion="8"
android:targetSdkVersion="17" />
<application
android:allowBackup="true"
android:icon="@drawable/ic_launcher"
android:label="Taboo"
android:theme="@style/AppTheme" >
.....
What am I missing?
Upvotes: 1
Views: 5488
Reputation: 1746
Tim, Label of your launcher activity will be displayed.
<activity
android:label="Taboo"
android:icon="@drawable/icon"
android:name=".activity.LaunchrActivity">
<intent-filter>
<action android:name="android.intent.action.MAIN"></action>
<category android:name="android.intent.category.LAUNCHER"></category>
</intent-filter>
</activity>
http://developer.android.com/guide/topics/manifest/activity-element.html#label
Upvotes: 7
Reputation: 3878
You have missed android:label property. which is set your application name under the icon
android:label="@string/app_name"
Here I have set to load app name from string.xml file. You can set it directly like this too
android:label="app name"
Upvotes: 0
Reputation: 22064
<activity
android:label="Your Name" <---- here name!
android:icon="@drawable/icon"
android:name=".activity.LoginActivity">
<intent-filter>
<action android:name="android.intent.action.MAIN"></action>
<category android:name="android.intent.category.LAUNCHER"></category>
</intent-filter>
</activity>
Upvotes: 1
Reputation: 1479
You could call the setTitle() function from within your Activity. It takes either an int (resource ID) or a CharSequence as a parameter.
Upvotes: 0