21
I am not clear about what is the difference between category home and category launcher. From Android documentation page:
CATEGORY_HOME : This is the home activity, that is the first activity that is displayed when the device boots.
CATEGORY_LAUNCHER : Should be displayed in the top-level launcher.
To test the difference I made a simple app with this manifest:
<application
android:icon="@drawable/ic_launcher"
android:label="@string/app_name" >
<activity
android:name=".IntentCategoriesActivity"
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=".Second"
android:label="Whatever" >
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.HOME" />
</intent-filter>
</activity>
</application>
But all I see is my launcher activity not the second activity.
Can somebody please explain what am I missing? Thanks.