Issue
What is the purpose of using android.intent.category.DEFAULT
in the Category field of Intent Filters?
Solution
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 ! "
Answered By - Özgür
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.