/* * Copyright 2010, 2011, 2012 mapsforge.org * * This program is free software: you can redistribute it and/or modify it under the * terms of the GNU Lesser General Public License as published by the Free Software * Foundation, either version 3 of the License, or (at your option) any later version. * * This program is distributed in the hope that it will be useful, but WITHOUT ANY * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A * PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License along with * this program. If not, see <http://www.gnu.org/licenses/>. */ package org.mapsforge.android.maps; import android.content.Context; /** * MapActivity is the abstract base class which must be extended in order to use a {@link MapView}. There are no * abstract methods in this implementation which subclasses need to override and no API key or registration is required. * <p> * A subclass may create a MapView either via one of the MapView constructors or by inflating an XML layout file. It is * possible to use more than one MapView at the same time. * <p> * When the MapActivity is shut down, the current center position, zoom level and map file of the MapView are saved in a * preferences file and restored in the next startup process. */ public interface MapActivity { Context getActivityContext(); int getMapViewId(); void registerMapView(MapView mapView); }