1

Adding Overlay Items to OSMDroid-Map in AsyncTask

view story
linux-howto

http://stackoverflow.com – What I want: I want a map with a marker at the user´s current location and 10 more, loaded in an AsyncTask from a Database after loading the map. What doenst work Everything is working fine, except the 10 additional markers. I loaded them from the DB, added them to the List of OverlayItems, and invalidated the map - they still aren´t shown. Additionally, the List of OverlayItems is initialized with zero objects (obviously), but after I add one OverlayItem, it contains 1 OverlayItem + 11 more null-Objects (or null-Refernces? null-Items? what´s the correct term?) My Question 1) @ List (HowTos)