How to specify which activity starts on app launch?

You need to add an intent filter to the activity you want to start on application launch in your app's AndroidManifest.xml:

<intent-filter>
    <action android:name="android.intent.action.MAIN" />
    <category android:name="android.intent.category.LAUNCHER" />
</intent-filter>

You need to make changes in AndroidManifest.xml file...

<application
        android:icon="@drawable/image"
        android:label="@string/app_name" >
        <activity
            android:label="@string/app_name"
            android:name="define the activity which you want to start first here" >
            <intent-filter >
                <action android:name="android.intent.action.MAIN" />

                <category android:name="android.intent.category.LAUNCHER" />
            </intent-filter>
        </activity>



        <activity android:name=".FirstActivity" >
        </activity>
        <activity android:name=".SecondActivity" >
        </activity>
        <activity android:name=".ThirdActivity" >
        </activity>
    </application>

Hope this will help you....


Open your AnroidManifest.xml file and set the Launching Activity using the intent-filter tag as follows,

    <activity android:name=".LaunchingActivity"
        android:label="@string/app_name">
        <intent-filter>
            <action android:name="android.intent.action.MAIN" />
            <category android:name="android.intent.category.LAUNCHER" />
        </intent-filter>
    </activity>