Code example for Location

Methods: setAltitudesetLatitudesetLongitude

0
            listener.onLocationChanged(l);
        } 
    } 
 
    private Location newLocation(double lat, double lon, double alt) {
        Location l = new Location(testProvider);
        l.setLatitude(lat);
        l.setLongitude(lon);
        l.setAltitude(alt);
 
        return l;
    } 
 
    private void initLocationData() { 
        locations = new ArrayList<Location>();
 
        locations.add(newLocation(33.751459, -84.3238770, 309));
        locations.add(newLocation(33.7514752, -84.3238663, 304));
        locations.add(newLocation(33.7514859, -84.3238610, 303));
        locations.add(newLocation(33.7514752, -84.32385, 303));