【发布时间】:2016-02-15 16:16:32
【问题描述】:
我想先从我的应用开始一个不同的活动,所以我搬家了:
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
这导致了一个奇怪(但有趣的问题),我的应用程序的名称(显示在主屏幕上)已完全更改为我首先调用的活动的名称。问题是,我已经在 application 标签中声明了应用程序的名称:
<application
android:allowBackup="true"
android:icon="@mipmap/ic_launcher"
android:label="This should be the title, right?"
android:theme="@style/AppTheme" >
但是首先开始的活动现在仍然是我的应用程序的名称。我对此进行了彻底的研究,但唯一的结果是关于如何更改您的应用程序的名称(example),如下所示:
android:label="This should be the title, right?"
但这是奇怪的部分,因为我已经设置好了,**然而 ** 应用程序的名称仍然是首先启动的活动的名称。我很想知道为什么会这样,以及如何解决这个意外问题。
感谢专家的建议,
丰富
这是我的整个清单: https://gist.github.com/anonymous/12cd29ad7ea9b2206a2b
【问题讨论】:
标签: android string android-activity android-studio android-manifest