viewContactListener That Processes ListView Item Selection Events
The viewContactListener (Fig. 8.28) notifies MainActivity when the user touches a contact to display. Line 84 passes the argument id—the row ID of the selected contact—to the listener’s onContactSelected method (Fig. 8.17).