Joe*_*Joe 2 android android-manifest
我正在开发一款Android应用程序并刚刚添加了Splash Screen,因为我将在启动时从SQLite加载...
在告诉AndroidManifest我希望将我的Splash活动作为我的启动器之后,它似乎改变了我的应用程序下载的名称.
该应用程序现在称为Splash,有没有人之前有这个问题?
<?xml version="1.0" encoding="utf-8"?>
Run Code Online (Sandbox Code Playgroud)
<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>
Run Code Online (Sandbox Code Playgroud)
Android正在使用启动器活动的标签名称,因此请将其更改为您的应用名称
更改
<activity
android:name="com.example.codedaykcrunningapp.Splash"
android:label="@string/title_activity_splash"
android:theme="@android:style/Theme.Black.NoTitleBar" >
<intent-filter>
....
Run Code Online (Sandbox Code Playgroud)
至
<activity
android:name="com.example.codedaykcrunningapp.Splash"
android:label="@string/app_name"
android:theme="@android:style/Theme.Black.NoTitleBar" >
<intent-filter>
....
Run Code Online (Sandbox Code Playgroud)
这将解决您的问题
| 归档时间: |
|
| 查看次数: |
690 次 |
| 最近记录: |