What is the purpose of "android.intent.category.DEFAULT"?

Pravy picture Pravy · Apr 20, 2011 · Viewed 51.4k times · Source

What is the purpose of using android.intent.category.DEFAULT in the Category field of Intent Filters?

Answer

Özgür picture Özgür · Jan 21, 2014

Categories are used for implicit Intents. So, If your Activity can be started by an implicit Intent when no other specific category is assigned to activity, activity's Intent filter should include this category. (even if you have other categories in the Intent filter). If you are sure that your activity must be called with any other Category, don't use the Default.

Setting Category to Default doesn't mean that this Activity will be used by default when your app launches. The Activity just says to system that " Oh I could be started, even if the starter Intent's category is set to Nothing at all ! "