开发者

Category information of an Activity through ActivityInfo class

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜