Naming Android App

Hi Guys,

I have compiled a few different apps for Android, that is all exciting, but they seem to all get the same name “MyGame”.

I tried changing both the Application Package name in Application > Android and the Title in Application. But none of these seem to affect the displayed name when transferred to my phone. What is the correct way to specify this?

The app name is defined in the Android Manifest file, in particular this line:
application android:label="@string/app_name"

@string/app_name references the string-resource named “app_name”, which is defined in your projects mobile/res/values/strings.xml file:
string name=“app_name”>MyGame</string
(Sorry for the bad formatting, the forum doesn’t accept tags :/)

Changing that should work. Not sure if there is any way to do it through the jME SDK UI.

1 Like
@Sebioff said: The app name is defined in the Android Manifest file, in particular this line: application android:label="@string/app_name"

@string/app_name references the string-resource named “app_name”, which is defined in your projects mobile/res/values/strings.xml file:
string name=“app_name”>MyGame</string
(Sorry for the bad formatting, the forum doesn’t accept tags :/)

Changing that should work. Not sure if there is any way to do it through the jME SDK UI.

Hmm, the two manifest files I have in my projects only contains:

…/MANIFEST.MF

X-Comment: Created with jMonkeyPlatform

…/mobile/assets/META-INF/MANIFEST.MF

Manifest-Version: 1.0
Ant-Version: Apache Ant 1.8.3
Created-By: 1.6.0_26-b03 (Sun Microsystems Inc.)

You should see it in the Project Explorer > Important Files > Android Manifest in the SDK. Otherwise you can find it under mobile/AndroidManifest.xml. Anyways, the proper way would be to change it in the string resource file, not in the manifest (as string resources can be localized).

1 Like