Screen shot of installed app section 我创建了一个小型拼图应用。我创建了android:标签为Math。在菜单网格中安装应用程序后,它显示为“Math”,但在已安装的应用程序部分中显示了包名称。请帮助我。
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.tam.prasanth.MathFunDemo" >
<uses-permission android:name="android.permission.INTERNET" />
<application
android:allowBackup="true"
android:icon="@drawable/logo"
android:supportsRtl="true"
android:theme="@style/AppTheme" >
<activity
android:name=".MainActivity"
android:label="@string/app_name"
android:theme="@style/AppTheme.NoActionBar" >
<intent-filter >
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
答案 0 :(得分:6)
应用程序名称(标签)应位于application
标记内,而不是activity
。
<application
android:label="@string/app_name"
>
....
答案 1 :(得分:0)
请在应用标记中指定android:label="@string/app_name"
标记。并且还将string.xml中的app_name
值设置为您的应用程序名称(Math).`