Switch Map Activities
The purpose of this sample is to show how to create multiple MapView's in a single application using multiple activities.
Sample Design
This sample creates two distinct MapView objects in seperate activities whereby you can switch between the two activities via a button. As you zoom or pan around either map the extent of the current map is sent as a message to the other map which honors the extent it recieves.
Using the Sample
Steps:
- Install the APK on your device
- The initial map opens up with the World Topo Map basemap.
- Zoom and pan around the map to set a custom extent
- Hit the 'Go to Map 2' button
- This will launch a new activity with the World Street Map set at the extent from initial map
- Continue zooming and panning in either map and hitting the button to send/recieve extents between the two maps
5/31/2012