Hai,
I am using mapview in a xml file and that xml file have to load many times according to user interaction. First time the map shows and pointing the correct place. But from the Second time onwards it shows "android.view.inflateexception". Please help me to clear this problem.Is there any problem with the apikey in the mapview for loading map twice..? this is the code for loading map into application.
mapView=(MapView)findViewById(R.id.mapview);
//mapView.setBuiltInZoomControls(true);
List<Overlay> mapOverlays = mapView.getOverlays();
Drawable drawable = this.getResources().getDrawable(R.drawable.pinpoint);
HelloItemizedOverlay itemizedoverlay = new HelloItemizedOverlay(drawable,this);
GeoPoint point = new GeoPoint((int)(latitude[event_id]*(1E6)),(int)(logintude[event_id]*(1E6)));
OverlayItem overlayitem = new OverlayItem(point, "Laissez les bon temps rouler!", "I'm in Louisiana!");
//LinearLayout zoomLayout=(LinearLayout)findViewById(R.id.zoom);
//View zoomView=mapView.getZoomControls();
//zoomLayout.addView(zoomView,new LinearLayout.LayoutParams(LayoutParams.WRAP_CONTENT,LayoutParams.WRAP_CONTENT));
mapView.displayZoomControls(true);
itemizedoverlay.addOverlay(overlayitem);
// itemizedoverlay.addOverlay(overlayitem2);
mc=mapView.getController();
mc.animateTo(point);
mc.setZoom(13);
mapOverlays.add(itemizedoverlay);