Adding navigation to POIDetailActivity

There are two scenarios where we need to navigate from POIListActivity to POIDetailActivity, either by selecting the New action on the navigation bar or by selecting any of the POIs from the list. The main difference between the two scenarios is that when selecting an existing POI from the list, we will have to pass the details of the selected POI to the POIDetailActivity so that the user can edit and update the POI record. When creating a new POI, we don't pass any data. Let's first choose the simplest one, and add the navigation to the New action.

The Activity class provides a method named StartActivity() that is used to start a new activity. The StartActivity() method can also be used in a number of different ...

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.