java - Why isn't the MAIN and LAUNCHER activity not starting first? -
i have 2 activities, 'splash'and 'startingpoint'. xml explicitly states 'splash' activity main , launcher, when running app, 'startingpoint' seems first thing running. how can fix it?
<?xml version="1.0" encoding="utf-8"?> <manifest xmlns:android="http://schemas.android.com/apk/res/android" package="com.commer.commest" android:versioncode="1" android:versionname="1.0" > <uses-sdk android:minsdkversion="8" 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.commer.commest.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="com.commer.commest.startingpoint" android:label="@string/app_name"> <intent-filter> <action android:name="com.commer.commest.startingpoint" /> <category android:name="android.intent.category.default" /> </intent-filter> </activity> </application> </manifest>
you should change this:
<application android:allowbackup="true" android:icon="@drawable/ic_launcher" android:label="@string/app_name" android:theme="@style/apptheme" > <activity android:name="com.commer.commest.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="com.commer.commest.startingpoint"/> </application>
Comments
Post a Comment