Display a Map


The Display Map app is the most basic Map app for the ArcGIS Runtime SDK for Android. It shows how to inflate a MapView in the layout XML of the activity, create a ArcGISMap with a static Basemap.Type and bind the Map to the MapView. By default, this map supports basic zooming and panning operations.


  • ArcGISMap
  • MapView
  • Basemap.Type

Developer Pattern

Create a ArcGISMap with a Basemap.Type and an initial viewpoint.

// inflate MapView from layout
mMapView = (MapView) findViewById(R.id.mapView);
// create a map with the BasemapType topographic
ArcGISMap mMap = new ArcGISMap(Basemap.Type.TOPOGRAPHIC, 34.056295, -117.195800, 16);
// set the map to be displayed in this view

In this topic
  1. Description
  2. Features