1

谁能告诉我如何更改应用名称?因为我的第一个活动是 splash,所以我的应用程序在 Emulator 上将 splash 作为应用程序名称。

编辑:在启动应用程序之前,它以“splash”作为应用程序名称。一旦启动,就会显示正确的名称。

显现:

    <uses-sdk
    android:minSdkVersion="9"
    android:targetSdkVersion="18" />

  <application
    android:allowBackup="true"
    android:icon="@drawable/ic_launcher"
    android:label="@string/app_name"
    android:theme="@style/AppTheme" >
    <activity
        android:name="com.sanginfo.temperatureconvertor.SplashActivity"
        android:label="@string/title_activity_splash" >
        <intent-filter>
            <action android:name="android.intent.action.MAIN" />

            <category android:name="android.intent.category.LAUNCHER" />
        </intent-filter>
    </activity>
    <activity
        android:name="com.sanginfo.temperatureconvertor.LoginActivity"
        android:label="@string/app_name" >
        <intent-filter>
            <action android:name="android.intent.action.LoginActivity" />

            <category android:name="android.intent.category.DEFAULT" />
        </intent-filter>
    </activity>

</application>
4

4 回答 4

3

在标记下的清单文件中,application将此标记更改为您想要的任何应用程序名称..android:label="@string/app_name"

于 2013-09-24T12:40:20.663 回答
0

使用应用程序节点上的名称属性,如下所述:http: //developer.android.com/guide/topics/manifest/application-element.html

于 2013-09-24T12:40:50.583 回答
0

@stylojack_10

转到文件名 String.xml (Project->res->values->string.xml)

更改标签名称 app_name 的值。您甚至可以在那里制作自己的标签并在标签下的 Android Manifest 文件中进行更改 find android:label="@string/"your custom app name""

希望这能解决您的问题

于 2013-09-24T12:47:43.540 回答
0

解决方案1:(解决方案大部分时间都有效

转到res -> values -> strings.xml -> appname,在那里更改应用程序的名称。

不去 Android Manifest 并检查它是否看起来像这样:

<application

    android:label="@string/app_name" 
    .......................
>

如果android:label="@string/app_name"更改为android:label="MyApp",则将其更改为如上所示。你的问题应该得到解决。


解决方案2:

有一个名为OldAppName .launch的文件

它位于工作区/.metadata/.plugins/org.eclipse.debug.core/.launches

还包括:

/User/workspace/.metadata/.plugins/org.eclipse.ltk.core.refactoring/.refactorings

Eclipse 中也有一个小故障,显示旧的应用程序名称而不是更改名称。

于 2013-09-24T12:49:46.540 回答