Refresh overlay object in Map Activity on Android
I have to build a map activity and on top of that, I need to display some location points. These locations are retrieving from a hashtable in another class. The content of this hashtable always changes. So I expect to see those location spots on the Map Activity move as the hashtable is modified. The code is shown below: @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.mapview); MapView mapView = (MapView) this.findViewById(R.id.map); mapView.setStreetView(true); mc = mapView.getController(); mc.animateTo(...); mc.setZoom