I have an android application, I’m trying to put a splash screen in via a tutorial I found and I added an additional activity to the manifest “SplashScreen”, however my other activity still loads first. If I take the other one out, the splash screen will load but crashes. How can I get the SplashScreen to load first?
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="projectmp.android"
android:versionCode="1"
android:versionName="1.0">
<application android:icon="@drawable/icon" android:label="@string/app_name" android:debuggable="true">
<uses-library android:name="com.google.android.maps" />
<activity android:name=".SplashScreen"
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=".MissionPlanner"
android:label="@string/app_name"
android:theme="@android:style/Theme.NoTitleBar">
<intent-filter>
<action android:name="projectmp.android.MissionPlanner" />
<category android:name="android.intent.category.DEFAULT" />
</intent-filter>
</activity>
</application>
<uses-sdk android:minSdkVersion="7" />
<uses-permission android:name="android.permission.INTERNET" />
</manifest>
Thanks
Whatever you are launching it from still thinks that it is trying to launch
MissionPlanner. It may be caching an earlier definition of your application. The default home screen launcher should not have this effect, but third-party ones, or home screen shortcuts, will.