android-已安装的应用程序部分显示了我自己的应用程序的程序包名称而不是应用程序名称 [英] android - Installed app section shows package name instead of app name for my own application

查看:155
本文介绍了android-已安装的应用程序部分显示了我自己的应用程序的程序包名称而不是应用程序名称的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

已安装的应用程序部分的屏幕截图我创建了一个小型拼图应用程序.我将android:label创建为Math.在菜单网格中安装该应用程序后,它显示为"Math",但在已安装的应用程序"部分中,它显示软件包名称.请帮我.

Screen shot of installed app section I created an small puzzle app. I created the android:label as Math. After installing the app in menu grid it shows as "Math", but in the installed apps section it shows the package name. Pls help me out.

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>

推荐答案

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

the application name (label) should be within the application tag and not the activity.

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

这篇关于android-已安装的应用程序部分显示了我自己的应用程序的程序包名称而不是应用程序名称的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆