【发布时间】:2017-04-24 20:05:13
【问题描述】:
我是 Android Studio 和操作系统的新手,并且一直在设计应用程序,我尝试在创建初始屏幕并将其添加到清单文件后向我的应用程序添加初始屏幕,但我不断收到此错误:
无法识别启动活动:未找到默认活动错误 在启动活动时
我遵循的获取初始屏幕的教程没有提供更正此错误的见解。
以下是我的完整清单文件,如果有人能纠正我,我将不胜感激。
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="gui.prog">
<application
android:allowBackup="true"
android:icon="@mipmap/ic_launcher"
android:label="@string/app_name"
android:supportsRtl="true"
android:theme="@style/AppTheme">
<activity android:name=".MainActivity">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.DEFAULT" />
</intent-filter>
</activity>
<activity android:name=".Display" ></activity>
<activity android:name=".Signup" ></activity>
<activity android:name=".Splash">
<intent-filter>
<action android:name="android.intent.category.MAIN"/>
<category android:name="android.intent.category.LAUNCHER"/>
</intent-filter>
</activity>
</application>
</manifest>
【问题讨论】:
-
使用了错误的意图过滤器,在splash活动下使用它
标签: java android android-studio splash-screen