开发者

Category information of an Activity through ActivityInfo class

开发者 https://www.devze.com 2023-01-11 02:23 出处:网络
I was expecting to see Categori开发者_JAVA技巧es that a particular Activity belongs to in ActivityInfo class but I could not find any

I was expecting to see Categori开发者_JAVA技巧es that a particular Activity belongs to in ActivityInfo class but I could not find any reference to Category in the ActivityInfo class. Anybody knows where Category information is maintained for an Activity?


Activities do not have categories. Intent filters have categories. I don't see where you can readily find the IntentFilters for a given ActivityInfo, but you can get the IntentFilter from a ResolveInfo, and you get those via queryIntentActivities() and resolveActivity().

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号