Reputation: 337
I have a mapview in one activity on which i drew a path, now i would transfer this mapview to another activity, how can i do?
Upvotes: 0
Views: 383
Reputation: 64700
You can't really transfer controls that way: you'd have to do a remove() to undo the root view bindings and then hope and pray that it works when you re-add it, and to complicate things the MapView mixes in with the MapActivity in complex ways so this will probably fail.
See http://code.google.com/android/add-ons/google-apis/reference/com/google/android/maps/MapActivity.html. Notice the line that says
Only one MapActivity is supported per process. Multiple MapActivities running simultaneously are likely to interfere in unexpected and undesired ways.
That means you probably can't do what you want.
Upvotes: 3