Problems When My Googlemaps View Activity Regain The Focus (map With Black Zone In Down Part Of The Window)
i have a problem with my app, it haves a lot of activitys, two of them haves googlemap views. My A activity haves a full mapview and my B activity haves a small map view. OK, when
Solution 1:
Having multiple maps (MapViews) running in the same process is not adviced. Typically, using the default configuration, all Activities (including MapActivities) run within the same process.
According to the api docs, located here http://code.google.com/android/add-ons/google-apis/reference/com/google/android/maps/MapActivity.html
Only one MapActivity is supported per process. Multiple MapActivities running simultaneously are likely to interfere in unexpected and undesired ways.
Issues I encountered with multiple MapViews within the same process :
- Although it appears that there are 2 different maps in the app, changes in the first map (ex: moving it to a certain position, toggling sattelite view) also got reflected in the second map, as if it was the same map.
- On occasion, map tiles were not getting loaded properly. Portions of the map, or the complete map remained empty.
- In Logcat, apache http connection pool errors were logged (originating from the TilesProvider)
There is a defect logged here : http://code.google.com/p/android/issues/detail?id=3756
A solution / workaround is to host your maps in different processes :
<activityandroid:name=".MapView1"android:process=":MapView1"><activityandroid:name=".MapView2"android:process=":MapView2">
Post a Comment for "Problems When My Googlemaps View Activity Regain The Focus (map With Black Zone In Down Part Of The Window)"