0

标题解释得很清楚,这里是清单:

<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="eu.craym.vulcrum.firstgametnb"
android:versionCode="1"
android:versionName="1.0" >

<uses-sdk
    android:minSdkVersion="8"
    android:targetSdkVersion="17" />

<application
    android:allowBackup="true"
    android:icon="@drawable/ic_launcher"
    android:label="@string/app_name"
    android:theme="@style/AppTheme" >
    <activity
        android:name=".Splash"
        android:label="@string/app_name" >
        <intent-filter>
            <action android:name="android.intent.action.MAIN" />
            <category android:name="android.intent.category.LAUNCHER" />
        </intent-filter>
    </activity>
    <activity
        android:name=".StartingPoint"
        android:label="@string/app_name" >
        <intent-filter>
            <action android:name="eu.craym.vulcrum.STARTINGPOINT" />
            <category android:name="android.intent.category.DEFAULT" />
        </intent-filter>
    </activity>
</application>

</manifest>

然而,每当我运行这个应用程序时,都会首先调用 StartingPoint 类:

[2013-03-09 18:36:40 - FirstGameTNB] Starting activity eu.craym.vulcrum.firstgametnb.StartingPoint on device emulator-5554

为什么会这样?我认为 MAIN 和 LAUNCHER 应该做到这一点,以便首先调用 Splash 类,但这从未发生过。请注意,当我删除 StartingPoint 活动时,它会转到 Splash。

4

1 回答 1

0

你是对的。您可以尝试清理您的项目。

android.intent.action.MAIN:作为主入口启动,不期望接收数据。

资源

于 2013-03-09T18:32:58.383 回答