First, U has, for example, a database (or a local data structure in your list activity) with cities and corresponding coordinates. Then in onListItemClick() you create a new intent and insert additional data (name, coordinates or primary key of the row in the db table) into it. Start a new activity with extended MapActivity with this intention, take mMapController = mMapView.getController(); and animate to mMapController.animateTo(new GeoPoint((int)yourLatitudeE6,(int)yourLongitudeE6)) , where yourLatitudeE6 and yourLongitudeE6 are additions from intent
source share