Receiving the data in POIDetailActivity

When we get to the OnCreate() method of the POIDetailActivity, we need to access the PointOfInterest object sent from POIListActivity. This object will be used to display the details of the selected POI. The following section will walk you through the process of retrieving the extra bundle metadata from Intent.

Each activity has an Intent property that contains the intent and the corresponding information that was passed while starting the activity. The Intent class provides a number of methods to access any of the Extras bundle data by providing the corresponding keys. Before we retrieve the data, we can confirm whether the value for the specified key is available by calling the HasExtra ("poi") method. ...

Get Xamarin Mobile Application Development for Android - Second Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.