【问题标题】:Splash Screen Added - App Name Changed添加了启动画面 - 应用名称已更改
【发布时间】:2014-02-16 08:10:56
【问题描述】:

我正在开发一个 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>

【问题讨论】:

  • 您能出示您的清单吗?
  • 你的问题不清楚
  • Splashproject explorer 中显示的更改名称在哪里
  • 它在我运行应用程序的手机上发生了变化...
  • 从你的手机中卸载你的应用程序清理你的项目并运行它

标签: android android-manifest


【解决方案1】:

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

这将解决您的问题

【讨论】:

    【解决方案2】:

    在告诉 AndroidManifest 我想要我的 Splash 之后 活动作为我的发射器,它似乎改变了我的名字 应用下载下。

    BCOZ

    如果您的“启动器活动”带有 [标签名称] 和“应用程序标签”也带有不同的 [标签名称],那么 Android 将从启动器活动中获取 [标签名称]。 有关更多信息,您可以查看此android documentation

    【讨论】:

      【解决方案3】:

      应用名称在文件Android Manifest中设置,请检查项目应用和属性android:label。

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

      【讨论】:

      • 这是它的设置...我也仔细检查了我的 strings.xml 并且 app_name 设置正确
      猜你喜欢
      • 1970-01-01
      • 2011-12-30
      • 1970-01-01
      • 2018-08-31
      • 1970-01-01
      • 2015-10-27
      • 2017-05-19
      • 2020-10-16
      相关资源
      最近更新 更多