マニフェスト(AndroidManifest.xml)のアプリケーションノードのフィールドを変更して、Androidアプリケーションの名前を変更するこのチュートリアルに従いました。android:label
アプリケーションノード:
<application
android:icon="@drawable/ic_launcher"
android:label="@string/app_name"
android:theme="@style/Theme.pps" >
<activity
android:name=".MainActivity"
android:label="@string/title_activity_main" >
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
</application>
strings.xml-さまざまな文字列の名前を含むXMLファイル。
<resources>
<string name="app_name">PPS</string>
<string name="menu_settings">Settings</string>
<string name="title_activity_main"></string>
</resources>
このタスクを完了した後も、名前は表示されません。これは、アプリケーションを実行し、テストデバイスにインストールしたときに表示されるものです。
android:label
にテキストを追加してアクティビティノードのpresentの値を変更すると、奇妙なことが起こりまし<string name="title_activity_main"></string>
た。アプリケーションはそれを名前として継承しているようです。なぜこれが発生するのですか?何か間違って宣言しましたか?いくつかの値が衝突していますか?
アップデート:
「アプリの管理」を選択すると、実際にアプリケーションの名前が表示されます。