1

アプリ名の変更方法を誰か教えてください。私の最初のアクティビティはスプラッシュであるため、私のアプリはエミュレーターのアプリ名としてスプラッシュを取っています。

編集:アプリが起動される前に、アプリ名として「スプラッシュ」がかかります。起動すると、正しい名前が表示されます。

マニフェスト:

    <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

0

解決策 1: (この解決策はほとんどの場合有効です)

に移動しres -> values -> strings.xml -> appname、そこでアプリの名前を変更します。

いいえ、Android マニフェストに移動して、次のようになっているかどうかを確認します。

<application

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

android:label="@string/app_name"が に変更されている場合はandroid:label="MyApp"、上記のものに変更してください。あなたの問題は解決されるはずです。


解決策 2:

OldAppName .launchというファイルがありました

これは、workspace/.metadata/.plugins/org.eclipse.debug.core/.launchesにあります。

も詰め込みます:

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

また、名前を変更する代わりに古いアプリ名を表示するEclipseの不具合。

于 2013-09-24T12:49:46.540 に答える