Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Naming my application in android

I think I'm getting senile because I was convinced that to give a name to your application, you had to fill this part of the manifest:

<application android:icon="@drawable/icon"  android:label="MyApplicationName"> 

However for a reason I don't understand, my application gets the name of my first activity, in which I load data, thus, it is called "Loading", defined as follows in the manifest:

<activity android:name="AccueilSplash" android:label="Loading"> 

Any idea why that is?

like image 549
Sephy Avatar asked Mar 14 '10 22:03

Sephy


People also ask

Can I change application name in Android?

Yes you can. By changing the android:label field in your application node in AndroidManifest. xml . to your Splash Screen, then the Launcher Icon name will be changed to the name of your Splash Screen Class name.


1 Answers

The launcher actually shows android:label and android:icon for activity(ies) that declare

<intent-filter>     <action android:name="android.intent.action.MAIN" />     <category android:name="android.intent.category.LAUNCHER" /> </intent-filter> 

so application label is of no use.

like image 87
yanchenko Avatar answered Sep 21 '22 15:09

yanchenko