Code example for ActionBarActivity

0
import de.uni.stuttgart.informatik.ToureNPlaner.R; 
import org.mapsforge.android.maps.IMapActivity; 
import org.mapsforge.android.maps.MapView; 
import org.mapsforge.core.GeoPoint; 
 
public class MapActivity extends ActionBarActivity implements IMapActivity { 
	private MapView mapView;
 
	@Override 
	protected void onSaveInstanceState(Bundle outState) {
		super.onSaveInstanceState(outState);
 
		outState.putSerializable("Center", mapView.getMapPosition().getMapCenter());
		outState.putByte("ZoomLvl", mapView.getMapPosition().getZoomLevel());
	} 
 
	@Override 
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);