android - 已安装的应用程序部分显示包名称而不是我自己的应用程序的应用程序名称

时间:2016-01-13 08:49:57

标签: android android-manifest

Screen shot of installed app section 我创建了一个小型拼图应用。我创建了android:标签为Math。在菜单网格中安装应用程序后,它显示为“Math”,但在已安装的应用程序部分中显示了包名称。请帮助我。

Manifest code

<?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>

2 个答案:

答案 0 :(得分:6)

应用程序名称(标签)应位于application标记内,而不是activity

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

答案 1 :(得分:0)

请在应用标记中指定android:label="@string/app_name"标记。并且还将string.xml中的app_name值设置为您的应用程序名称(Math).`