android:name value in androidmanifest.xml

android, cordova

Solution

`android:label` and `android:name` are completely different.

- `android:label` is the name that will show up on emulators and real devices as you've observed.

- `android:name` is "An optional name of a class implementing the overall android.app.Application for this package. [string]". This attribute is used when you have a custom class that extends `Application` that you want to use. This attribute should be a class prepended by its package. You can just use one period to use the application's package.

Example:

`android:name="com.myapp.CustomApplication"` or `android:name=".CustomApplication"`.

Problem

Although my app name is showing correctly on emulators and real devices, in androidmanifest.xml it currently reads `android:name="HelloCordova"` ``` <activity android:configChanges="orientation|keyboardHidden|keyboard|screenSize|locale" android:label="@string/app_name" android:name="HelloCordova" android:theme="@android:style/Theme.Black.NoTitleBar"> ``` Should I change the HelloCordova to what my app name is or is it ok to leave as-is? Thanks!

Original source