MapView ConcurrentModificationException When Updating Overlays
I have built off of the google api MapView demo. I've extended the MapView class to create a 'onPanListener' similar to: How to catch that map panning and zoom are really finished
Solution 1:
After reading through Android 2.1 GoogleMaps ItemizedOverlay ConcurrentModificationException more thoroughly, I came to the conclusion that my issue was the fact that I was launching a new thread for the timer which added and removed overlay items, which would intermittently cause the concurrentacccessexception.
I ended up putting the code modifying the overlays inside an Activity.runOnUiThread(...) and haven't seen the problem since.
Post a Comment for "MapView ConcurrentModificationException When Updating Overlays"