android Programming Glossary: srcdrawable
Adding a custom marker to map - Android http://stackoverflow.com/questions/10058666/adding-a-custom-marker-to-map-android share improve this question GeoPoint p mapView.getProjection .fromPixels int event.getX int event.getY Drawable srcdrawable getApplicationContext .getResources .getDrawable R.drawable.pin_blue CustomItemizedOverlay srcitemizedOverlay new CustomItemizedOverlay.. .getResources .getDrawable R.drawable.pin_blue CustomItemizedOverlay srcitemizedOverlay new CustomItemizedOverlay srcdrawable getApplicationContext OverlayItem srcoverlayitem new OverlayItem p Hello This is your Location. srcitemizedOverlay.addOverlay..
Can't mark while showing the current location in 'mapview' http://stackoverflow.com/questions/9990209/cant-mark-while-showing-the-current-location-in-mapview mapOverLay Replace the above lines with below lines where lat and long are fetched from gps. Drawable srcdrawable getApplicationContext .getResources .getDrawable R.drawable.pin_blue CustomItemizedOverlay srcitemizedOverlay new CustomItemizedOverlay.. .getResources .getDrawable R.drawable.pin_blue CustomItemizedOverlay srcitemizedOverlay new CustomItemizedOverlay srcdrawable getApplicationContext GeoPoint srcpoint new GeoPoint int Double.parseDouble lat 1E6 int Double.parseDouble lng 1E6 OverlayItem.. mapController.animateTo srcpoint mapController.setZoom 16 If you want more than one point on map Drawable srcdrawable getApplicationContext .getResources .getDrawable R.drawable.pin_blue CustomItemizedOverlay srcitemizedOverlay new CustomItemizedOverlay..
|