Waheed Khan Waheed Khan - 7 months ago 46
Android Question

Info about Action MAIN and Category Launcher in Android Manifest

In the Android manifest file, what do you mean by the category Launcher and action MAIN

category android:name="android.intent.category.LAUNCHER"

action android:name="android.intent.action.MAIN"

Is it possible to make one activity the laucher and another one the main action?


Activities will very often need to support the CATEGORY_DEFAULT so that they can be found by Context.startActivity(). So, CATEGORY_DEFAULT can appear number of times.

Android does not grab whichever one appears first in the manifest but it starts with activity having CATEGORY_LAUNCHER.

CATEGORY_LAUNCHER : The activity can be the initial activity of a task and is listed in the top-level application launcher.

For more details refer: http://developer.android.com/guide/topics/intents/intents-filters.html