Code example for LocationClient

Methods: getLastLocation

0
		updates = pm.getBoolean("autotrack");
		// h = new Helper(this); 
	} 
 
	public Location getCurrentLocation() {
		l = lc.getLastLocation();
		return l;
	} 
 
	@Override 
	public void onStart(Intent intent, int startId) {
		lc.connect();
 
	} 
 
	@Override 
	public void onLocationChanged(Location l) {
		pm.setString("lastlatitude", Double.toString(l.getLatitude()));
		pm.setString("lastlatitude", Double.toString(l.getLongitude()));
	}