我还在学习Android应用开发。我有一个我在Android Studio中开发的应用程序。在我的手机应用程序管理器中,应用程序的名称是正确的。在我的应用中,它会显示应用名称的主菜单。我已经尝试清除缓存,卸载和重新安装。我检查了Android Manifest。一切看起来都很正确。
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.xxx.xxxx" >
<application
android:allowBackup="true"
android:icon="@mipmap/ic_launcher"
android:label="@string/app_name"
android:theme="@style/AppTheme" >
<activity
android:name=".MainMenu"
android:label="@string/title_activity_main_menu" >
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
<activity
android:name=".MainActivity"
android:label="@string/title_activity_main_menu" >
</activity>
<activity
android:name=".MultipleChoice"
android:label="@string/title_activity_multiple_choice" >
</activity>
<activity
android:name=".SettingsActivity"
android:label="@string/title_activity_settings" >
</activity>
</application>
</manifest>
<resources>
<string name="app_name">Ultra Math</string>
<string name="RightText">Right</string>
<string name="option1">1st Option</string>
<string name="option2">2nd Option</string>
<string name="LeftText">Left</string>
<string name="OperatorText">+</string>
<string name="StartButton">Start</string>
<string name="TimeLeft">Time Left: 60</string>
<string name="btn0">0</string>
<string name="btn1">1</string>
<string name="btn2">2</string>
<string name="btn3">3</string>
<string name="btn4">4</string>
<string name="btn5">5</string>
<string name="btn6">6</string>
<string name="btn7">7</string>
<string name="btn8">8</string>
<string name="btn9">9</string>
<string name="btnEnter">Enter</string>
<string name="btnNegative">-</string>
<string name="title_activity_menu">Ultra Math</string>
<string name="hello_world">Hello world!</string>
<string name="title_activity_main_menu">Main Menu</string>
<string name="btnTypeAnswers">Type Answers</string>
<string name="Zero">0</string>
<string name="two">2</string>
<string name="title_activity_multiple_choice">Multiple Choice</string>
<string name="btnMultipleChoice">Multiple Choice</string>
</resources>
我还有什么地方可以看,或者其他任何我可以尝试的地方吗?
谢谢,
大卫
答案 0 :(得分:2)
它的名称来自启动器活动的标题。所以你需要在title_activity_main_menu
更改字符串或者像这样设置
<activity
android:name=".MainMenu"
android:label="@string/app_name" >
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>