This post might be of some help: http://groups.google.com/group/android-developers/browse_thread/thread/38b11314e34714c3
On Jul 9, 9:09 pm, aspekt9 <aspe...@gmail.com> wrote: > I have a MapView which utilizes andItemizedOverlayto draw map > markers to the map. The application stores the markers for later use > in a database and in the mOverlays OverlayItem ArrayList. This works > fine for adding new items, but removing items from the ArrayList > shrinks the arraylist and throws off the indexes.. I tried to > circumvent this by using a regular OverlayItem Array but then I run > into the issue of not being able to create a dynamic array to support > the ever changing amount of items. How can I get around this so the > indexes are always constant and the onTap method works properly when > adding AND removing items? --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---