Info

Your application can use intent matching is a similar way. The PackageManager has a set of query...() methods that return all components that can accept a particular intent, and a similar series of resolve...() methods that determine the best component to respond to an intent. For example, queryIntentActivitiesQ returns a list of all activities that can perform the intent passed as an argument, and queryIntentServicesQ returns a similar list of services. Neither method activates the components; they just list the ones that can respond. There's a similar method, queryBroadcastReceiversQ, for broadcast receivers.

0 0

Post a comment