Look Inside Yourself
Figure 54. The Contacter application, after the user chooses a contact
Extra Credit...............................................................................................
Here are some things you can try beyond those step-by-step instructions:
- Arrange to get control on a list item click and display more details
about the possible action, by getting details out of the ResolveInfo
object (in particular, the ActivityInfo object held onto by the
ResolveInfo object).
- Find a way to launch an actual activity from the information held in
the ResolveInfo that starts up the desired action. You might want to
take a peek at the source code to addIntentOptions() in the
Android source code for ideas on how to accomplish this.