Beispiel #1
0
  public void addMarker(GeoPoint point) {
    SimpleDateFormat dateFormat = new SimpleDateFormat("yyyyMMdd_HHmmss");
    Date date = new Date();

    mMarkerOverlay.addItem(point, "marker" + dateFormat.format(date), "snippet");

    SharedPreferences.Editor editor = sharedPreferences.edit();

    editor.putString(MAP_POINTS, getMarkerJson());

    editor.commit();
  }
Beispiel #2
0
 public String getMarkerJson() {
   return mMarkerOverlay.getJSON();
 }