android: remove MapActivity

- see vtm-android-start for an example use of MapView
- add MapPreferences

- update android-start
- android-example: use appcompat actionbar
This commit is contained in:
Hannes Janetzek
2014-10-20 05:14:00 +02:00
parent 0c5a7e7aa6
commit b1cfdfd454
15 changed files with 197 additions and 187 deletions

View File

@@ -60,7 +60,6 @@ public class MapView extends GLSurfaceView {
this(context, null);
}
@SuppressWarnings("deprecation")
public MapView(Context context, AttributeSet attributeSet) {
super(context, attributeSet);
@@ -92,10 +91,6 @@ public class MapView extends GLSurfaceView {
setRenderer(new GLRenderer(mMap));
setRenderMode(GLSurfaceView.RENDERMODE_WHEN_DIRTY);
/* to be removed */
if (context instanceof MapActivity)
((MapActivity) context).registerMapView(this);
mMap.clearMap();
mMap.updateMap(false);