I was expecting to see Categories 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?
A:
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()
.
CommonsWare
2010-08-12 17:21:28