Code example for MapView

Methods: onSaveInstanceState

0
	} 
 
	@Override 
	public void onSaveInstanceState(Bundle outState) {
		super.onSaveInstanceState(outState);
		mapView.onSaveInstanceState(outState);
	} 
 
	protected void addMarker(LatLng position, String title, float color) { 
		@SuppressWarnings("unused") 
		Marker marker = map.addMarker(new MarkerOptions()
		.position(position)
		.title(title)
		.icon(BitmapDescriptorFactory.defaultMarker(color)));
		 
	} 
	 
	@Override 
	public void onLocationChanged(Location loc) {
		GameController.getInstance().sendMessage("loc:" + loc.getLatitude() + "," + loc.getLongitude());
	}