@Override
	public void onCreate(final Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);

		// Setup base map
		rl = new RelativeLayout(this);

		this.mMapView = new MapView(this);
		this.mMapView.setTilesScaledToDpi(true);
		rl.addView(this.mMapView, new RelativeLayout.LayoutParams(LayoutParams.FILL_PARENT,
				LayoutParams.FILL_PARENT));
		this.mMapView.setBuiltInZoomControls(true);

		// zoom to the netherlands
		this.mMapView.getController().setZoom(7);
		this.mMapView.getController().setCenter(new GeoPoint(51500000, 5400000));

		// Add tiles layer
		mProvider = new MapTileProviderBasic(getApplicationContext());
		mProvider.setTileSource(TileSourceFactory.FIETS_OVERLAY_NL);
		this.mTilesOverlay = new TilesOverlay(mProvider, this.getBaseContext());
		this.mMapView.getOverlays().add(this.mTilesOverlay);

		this.setContentView(rl);
	}
@ Override public void onCreate ( final Bundle savedInstanceState ) { super . onCreate ( savedInstanceState ) ; rl = new RelativeLayout ( this ) ; this . mMapView = new MapView ( this ) ; this . mMapView . setTilesScaledToDpi ( true ) ; rl . addView ( this . mMapView , new RelativeLayout . LayoutParams ( LayoutParams . FILL_PARENT , LayoutParams . FILL_PARENT ) ) ; this . mMapView . setBuiltInZoomControls ( true ) ; this . mMapView . getController ( ) . setZoom ( 7 ) ; this . mMapView . getController ( ) . setCenter ( new GeoPoint ( 51500000 , 5400000 ) ) ; mProvider = new MapTileProviderBasic ( getApplicationContext ( ) ) ; mProvider . setTileSource ( TileSourceFactory . FIETS_OVERLAY_NL ) ; this . mTilesOverlay = new TilesOverlay ( mProvider , this . getBaseContext ( ) ) ; this . mMapView . getOverlays ( ) . add ( this . mTilesOverlay ) ; this . setContentView ( rl ) ; }
Called when the activity is first created.