Code example for MapView

Methods: getMap

0
	private void setUpMapIfNeeded() { 
		// Do a null check to confirm that we have not already instantiated the 
		// map. 
		if (mMap == null) {
			 
			mMap = mMapView.getMap();
			// Check if we were successful in obtaining the map. 
			if (mMap != null) {
				setUpMap(); 
			} 
		} 
	} 
 
	private void setUpMap() { 
		 
		Marker marker = mMap.addMarker(new MarkerOptions().position(new LatLng(lat, lon))
				.title(title).snippet("Click for Details").icon(BitmapDescriptorFactory.fromResource(R.drawable.icon_quake)));
		marker.showInfoWindow();
		//mMap.setOnMarkerClickListener(this); 
		mMap.setOnInfoWindowClickListener(this);
Contextual code suggestions in your IDE  Get Codota for Java