2014-02-16 24 views
2

我工作的一个Android应用程序和刚添加的启动画面,我会从SQLite的被加载在启动时...启动画面增加 - 应用程序名称变更

告诉AndroidManifest我”之后我喜欢将我的Splash活动作为我的LAUNCHER,它似乎改变了我的应用下载的名称。

该应用程序现在被称为Splash,有没有人有过这个问题?

<?xml version="1.0" encoding="utf-8"?> 

<uses-sdk 
    android:minSdkVersion="11" 
    android:targetSdkVersion="18" /> 

<application 
    android:allowBackup="true" 
    android:icon="@drawable/ic_launcher" 
    android:label="@string/app_name" 
    android:theme="@style/AppTheme" > 
    <activity 
     android:name="com.example.codedaykcrunningapp.MainActivity" 
     android:label="@string/app_name" > 
    </activity> 
    <activity 
     android:name="com.example.codedaykcrunningapp.Workout" 
     android:label="@string/title_activity_workout" > 
    </activity> 

    <receiver 
     android:name="com.example.codedaykcrunningapp.Widget" 
     android:label="@string/app_name" > 
    </receiver> 

    <activity 
     android:name="com.example.codedaykcrunningapp.Splash" 
     android:label="@string/title_activity_splash" 
     android:theme="@android:style/Theme.Black.NoTitleBar" > 
     <intent-filter> 
      <action android:name="android.intent.action.MAIN" /> 

      <category android:name="android.intent.category.LAUNCHER" /> 
     </intent-filter> 
    </activity> 
</application> 

+0

能你请出示你的舱单? – nikis

+0

你的问题不清楚 –

+0

哪里是改名'Splash'已显示在'项目浏览器' – kId

回答

0

的应用程序名称设置文件Android清单中,请检查项目申请和属性的android:标签。

<application 
    android:icon="@drawable/ic_launcher" 
    android:label="@string/app_name" 
    android:theme="@style/AppTheme" > 
... 
</application> 
+0

这就是它被设置为...我已经仔细检查我的strings.xml以及app_name是否正确设置 – Joe

2

,告诉我想有我飞溅 活动作为我的LAUNCHER的AndroidManifest后,似乎它改变了我的 的应用程序是根据下载的名称。

BCOZ

如果从启动活动“启动活动”用[标签名称] &“应用标签”还用不同的[标签名称]那么Android将取[标签名称] 。 欲了解更多信息,你可以看到这个android documentation

8

Android是使用你的发射活动的标签名称,以便更改您的应用程序名称

变化

<activity 
    android:name="com.example.codedaykcrunningapp.Splash" 
    android:label="@string/title_activity_splash" 
    android:theme="@android:style/Theme.Black.NoTitleBar" > 
    <intent-filter> 
    .... 

<activity 
    android:name="com.example.codedaykcrunningapp.Splash" 
    android:label="@string/app_name" 
    android:theme="@android:style/Theme.Black.NoTitleBar" > 
    <intent-filter> 
    .... 

这将解决您的问题

相关问题