I am developing an application which contains two activities, each of which contains a map view. Activity 1 creates and uses its map, starts Activity 2 and calls map.recycle() in onPause before Activity 2 begins. Activity 2 runs, creates and uses its map, and calls map.recycle() in onPause as it finishes. This all works fine.
The problem comes when Activity 1 resumes. It goes through the process of adding a map layer and a couple of graphics layers to the MapView object, but the map does not appear on the display.
Can I reuse the MapView object as I am attempting to do, or do I need to destroy it completely and create a new one each time Activity 1 resumes?
If any of this is unclear, let me know and I'll try to clarify.
Thanks,
Brad