public String exportFavorites(File f) { GPXFile gpx = new GPXFile(); for (FavouritePoint p : getFavorites().getFavouritePoints()) { if (p.isStored()) { WptPt pt = new WptPt(); pt.lat = p.getLatitude(); pt.lon = p.getLongitude(); pt.name = p.getName() + "_" + p.getCategory(); gpx.points.add(pt); } } return GPXUtilities.writeGpxFile(f, gpx, this); }