[android-developers] Re: ItemizedOverlay with dynamic items exception problem

2008-09-25 Thread elephantbug
Hi, Peter, Actually, if you look my code, I have a global array of overlay item. And I override following code: public int size() { return mFriendList.size(); } public LptOverlayItem createItem(int i)

[android-developers] Re: ItemizedOverlay with dynamic items exception problem

2008-09-24 Thread Mark Murphy
elephantbug wrote: I extend the MapActivity and have an ItemizedOverlay which will display array of items(For example, people) on top of MapView. These items' location are moving and some new items might be added in or some might be removed. There is another thread managing these items.

[android-developers] Re: ItemizedOverlay with dynamic items exception problem

2008-09-24 Thread Peter Stevenson
Hi this can be trigger by not create OverlayItem //customized ItemizedOverlay protected class FriendOverLay extends ItemizedOverlayOverlayItem private ListOverlayItem mItemList = new ArrayListOverlayItem(); { public FriendOverLay(Drawable marker) { super(marker); *mItemList.add(new