3 import android
.app
.Activity
;
4 import android
.os
.Bundle
;
5 import com
.google
.android
.maps
.MapView
;
6 import com
.google
.android
.maps
.MapActivity
;
7 import com
.google
.android
.maps
.GeoPoint
;
8 import com
.google
.android
.maps
.OverlayItem
;
9 import com
.google
.android
.maps
.Overlay
;
10 import android
.graphics
.drawable
.Drawable
;
12 import java
.util
.List
;
14 // public class LbgActivity extends Activity
15 public class LbgActivity
extends MapActivity
17 /** Called when the activity is first created. */
18 private LbgItemizedOverlay lbgOverlayItems
;
20 public void onCreate(Bundle savedInstanceState
)
25 List
<Overlay
> mapOverlays
;
27 super.onCreate(savedInstanceState
);
28 setContentView(R
.layout
.main
);
30 mapView
= (MapView
) findViewById(R
.id
.mapview
);
31 mapView
.setBuiltInZoomControls(true);
33 mapOverlays
= mapView
.getOverlays();
34 Drawable drawable
= this.getResources().getDrawable(R
.drawable
.androidmarker
);
35 lbgOverlayItems
= new LbgItemizedOverlay(drawable
, this);
37 malmo
= new GeoPoint(55704471, 13201071);
38 item
= new OverlayItem(malmo
, "Malmo", "malmo");
39 lbgOverlayItems
.addOverlay(item
);
40 mapOverlays
.add(lbgOverlayItems
);
43 protected boolean isRouteDisplayed()