Javadoc
Utility for forcing intents to be started inside the current app. This is useful for avoiding
senseless disambiguation dialogs. Ie, if a user clicks a contact inside Contacts we assume
they want to view the contact inside the Contacts app as opposed to a 3rd party contacts app.
Methods are designed to replace the use of startActivity() for implicit intents. This class isn't
necessary for explicit intents. No attempt is made to replace startActivityForResult(), since
startActivityForResult() is always used with explicit intents in this project.
Why not just always use explicit intents? The Contacts/Dialer app implements standard intent
actions used by others apps. We want to continue exercising these intent filters to make sure
they still work. Plus we sometimes don't know an explicit intent would work. See
#startActivityInAppIfPossible.
Some ContactsCommon code that is only used by Dialer doesn't use ImplicitIntentsUtil.