Issue
I got an App where on main screen show google mapView. But I need also in details view show the map.
I know that it is impossible to run two maps simultaneously. Everything is working when I want to show something on the main map and later in detailed view, but when I come back to main one, it stops.
How to stop main map and come back later to it?
Solution
Having two maps in one app produces many weird application behavior. For example, Ive had overlays from one map show up in the second map.
That said, it is possible to have two maps in one application without the above happening. What you need to do is to specify a new process for the second mapview:
<activity
android:label="@string/app_name"
android:name=".SecondMapActivityName"
android:process=":SecondMapProcess"
>
</activity>
The above code lies in the manifest and is for the activity containing the second MapView. This way a new process starts for this activity within the same app and both your maps behave as they should.
Answered By - Urban
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.