Hi, I use the ItemizedOverlay to display POIs. From time to time I get the following exception:
01-18 01:53:39.102: ERROR/AndroidRuntime(2348): java.lang.ArrayIndexOutOfBoundsException 01-18 01:53:39.102: ERROR/AndroidRuntime(2348): at com.google.android.maps.ItemizedOverlay.getIndexToDraw (ItemizedOverlay.java:203) 01-18 01:53:39.102: ERROR/AndroidRuntime(2348): at com.google.android.maps.ItemizedOverlay.draw(ItemizedOverlay.java:232) 01-18 01:53:39.102: ERROR/AndroidRuntime(2348): at com.google.android.maps.Overlay.draw(Overlay.java:175) 01-18 01:53:39.102: ERROR/AndroidRuntime(2348): at com.google.android.maps.OverlayBundle.draw(OverlayBundle.java:42) 01-18 01:53:39.102: ERROR/AndroidRuntime(2348): at com.google.android.maps.MapView.onDraw(MapView.java:450) As the POIs are reloaded, I have to replace the Overlays. I create a new ItemizedOverlay and set it to the overlays List of the MapView within a synchronized block. In addition, the getOverlays() method is supposed to return a synchronized List. But somehow this still is messed up. Any ideas? Cheers Huebi --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~----------~----~----~----~------~----~------~--~---