Code example for MapView

Methods: getMaponCreate

0
	 
	@Override 
	public void onActivityCreated(Bundle savedInstanceState) {
		super.onActivityCreated(savedInstanceState);
		//getSherlockActivity().getSupportFragmentManager().beginTransaction().replace(R.id.fragment_map, SupportMapFragment.newInstance()).commit(); 
		mapView.onCreate(savedInstanceState);
		//CameraUpdate c = CameraUpdateFactory.newLatLng(new LatLng((double)venue.getLat(), (double)venue.getLon())); 
		GoogleMap map = mapView.getMap();
		if(map!=null) {
			map.setMapType(GoogleMap.MAP_TYPE_NORMAL);
			map.getUiSettings().setZoomControlsEnabled(false);
			//map.moveCamera(c); 
			map.addMarker(new MarkerOptions().position(new LatLng((double)venue.getLat(), (double)venue.getLon())));
		} 
	} 
	 
	@Override 
	public void onPause() { 
		// TODO Auto-generated method stub 
		super.onPause(); 
//		mapView.onPause();