package nl.codestone.cookbook.maptest; import android.os.Bundle; import com.google.android.maps.MapActivity; import com.google.android.maps.MapView; public class MapTest extends MapActivity { @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.main); MapView mapview = (MapView) findViewById(R.id.mapview); mapview.setBuiltInZoomControls(true); } @Override protected boolean isRouteDisplayed() { return false; } }
<?xml version="1.0" encoding="utf-8"?> <com.google.android.maps.MapView xmlns:android="http://schemas.android.com/apk/res/android" android:id="@+id/mapview" android:layout_width="fill_parent" android:layout_height="fill_parent" android:apiKey="AIzaSyBLRbJiQXyenW5t5P0U4tjxfWQhpDpfbcA" android:clickable="true" />
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)