Change application name and label

Installer window

I would like to change the name and label of the application in the installer window (see attached image). The default name and label is the name of the package. Although I added a custom name and shortcut to AndroidManifest.xml, it does not appear in this installer window.

AndroidManifest.xml is below.

<?xml version="1.0" encoding="utf-8"?> <manifest xmlns:android="http://schemas.android.com/apk/res/android" package="com.style" android:versionCode="1" android:versionName="1.0"> <uses-sdk android:minSdkVersion="10" /> <application android:icon="@drawable/icon" android:label="@string/app_name"> <activity android:name=".StylePageActivity" android:label="@string/app_name"> <intent-filter> <action android:name="android.intent.action.MAIN" /> <category android:name="android.intent.category.LAUNCHER" /> </intent-filter> </activity> </application> </manifest> 

And the custom name in strings.xml (or /res/values/base-strings.xml ) is

 <string name="app_name">Demo Application</string> 
+4
source share
3 answers

You can change the name (or package) of your application in AndroidManifest.xml in the <manifest package="..." , and you can change the name of the application by changing the android:label attribute in the <application> in the same file.

Please note that a change in the package of your application is essentially registered as a completely different application from the previous one (in relation to Android).

+6
source

Can you post your manifest file here. The following works well for me:

 <application android:icon="@drawable/launcher_icon" android:label="@string/app_name" android:theme="@android:style/ Theme.NoTitleBar"> 
+2
source

in your activity

 this.setTitle("your text"); 

it works for me

0
source

All Articles