The documentation says you can specify a custom category.
- When, why and how would you do it?
- What would be the use of it?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
The way I understand it, categories are public directives to the android operating system(and other apps) that represent different categories that your app should be a part of.
Example
HOMEcategory — and if so it displays it in the app drawer.However, there’s more. You can specify categories in your applications manifest that lets the system know that you application can handle the intent category. For example, by putting a
ALTERNATIVEcategory, other apps in the system know that your app can handle that category without specifically knowing the action name! In the following example, custom intent categories are passed through this intent, which is filtered and the corresponding object gets edited(taken from the Notes example app):By registering this intent filter in an
<activity />tag, you can edit a “note”. The intent data would contain the note, and the intent would get routed to the activity that this filter is registered in.In Conclusion:
There isn’t really a reason you’d use a custom category. They are for Android, and thus don’t really make sense in application use. But, if you choose to use them, they can be used in the methods described above. “They provide some specific semantic rules, and if those rules are useful to you then feel free to use them”(Hackbod).