Page 146 "How Android Resolves Intent Filters"
The text states
Quote:
2.1. "Action matches are made if the Intent Filter either includes the specified action or has no action specified"
|
on Android developer guide
http://developer.android.com/intl/zh...s-filters.html
the rule follows
Quote:
To pass this test, the action specified in the Intent object must match one of the actions listed in the filter. If the object or the filter does not specify an action, the results are as follows:
•If the filter fails to list any actions, there is nothing for an intent to match, so all intents fail the test. No intents can get through the filter.
•On the other hand, an Intent object that doesn't specify an action automatically passes the test — as long as the filter contains at least one action.
|
Therefore I think the text got mixed up between the rules applied for Intent and Intent Filters.
I think changing the text to
"Action matches are made if the Intent Filter either includes the specified action or has no action specified
for Intent object"
would make more sense.
Please correct my understanding if I misunderstood any of the contents.
thanks