¡@

Home 

2014/10/16 ¤W¤È 08:11:58

android Programming Glossary: custompinpoint

Positing user current location and show it in Google maps

http://stackoverflow.com/questions/9586530/positing-user-current-location-and-show-it-in-google-maps

activity is first created. MapView mapView GeoPoint geo MapController mapController LocationManager locationManager CustomPinpoint itemizedoverlay @Override public void onCreate Bundle savedInstanceState super.onCreate savedInstanceState setContentView.. 0 0 new GeoUpdateHandler Drawable drawable this.getResources .getDrawable R.drawable.point itemizedoverlay new CustomPinpoint drawable createMarker public class GeoUpdateHandler implements LocationListener @Override public void onLocationChanged.. itemizedoverlay @Override protected boolean isRouteDisplayed TODO Auto generated method stub return false this is CustomPinpoint class public class CustomPinpoint extends ItemizedOverlay OverlayItem static int maxNum 3 OverlayItem overlays new OverlayItem..