[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 Peter Stevenson
Hi this can be trigger by not create OverlayItem //customized ItemizedOverlay protected class FriendOverLay extends ItemizedOverlay private List mItemList = new ArrayList(); { public FriendOverLay(Drawable marker) { super(marker); *mItemList.add(new OverlayItem(whatAroundMe.currentPoint ,

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

2008-09-24 Thread elephantbug
Hi, Mark, Here is the code snip: -- Main Map Screen --- public class MyMapActivity extends MapActivity implements Observer{ //global array of overlay items List mFriendList = Collections.synchronizedLis

[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. >