Info about Action MAIN and Category Launcher in Android Manifest

Waheed Khan picture Waheed Khan · Jul 18, 2011 · Viewed 13.2k times · Source

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?

Answer

Balaji Khadake picture Balaji Khadake · Jul 18, 2011

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