friend's I have a mapview after launching my application and have search button in header to search location the search result to be displayed with new intent,i used same xml layout for both the activities,when i place the intent code in same activity instead of startActivity(),the view has not been changed to corresponding location searched.
here mycode for initial map view,
wv = (MapView) findViewById(R.id.mapview);
geoPoint = new GeoPoint((int) (latitude * 1000000),
(int) (longitude * 1000000));
Log.v("Map1","first");
wv_cont = wv.getController();
wv_cont.setCenter(geoPoint);
wv_cont.setZoom(18);
wv.setSatellite(false);
wv.setBuiltInZoomControls(true);
// wv.setPersistentDrawingCache(ViewGroup.PERSISTENT_ANIMATION_CACHE);
// Get the location manager
locationManager = (LocationManager) getSystemService(Context.LOCATION_SERVICE);
and the scode below is from new search activity intent i placed in my main actvity itself it takes the latitude,longitude has well i given,but the view has remain the same.
wv = (MapView) findViewById(R.id.mapview);
geoPoint = new GeoPoint((int) (lat_val * 1000000),
(int) (long_val * 1000000));
wv_cont = wv.getController();
wv_cont.setCenter(geoPoint);
wv_cont.setZoom(18);
wv.setSatellite(false);
wv.setBuiltInZoomControls(true);
wv.setPersistentDrawingCache(ViewGroup.PERSISTENT_ANIMATION_CACHE);
// Get the location manager
locationManager = (LocationManager) getSystemService(Context.LOCATION_SERVICE);
Log.v("Map1","end");
how can i override the mapview. plz help me.
Thanks in advance.