Code example for LocationClient

Methods: requestLocationUpdates

0
 
	@Override 
	public void onConnected(Bundle arg0) {
		Log.d("AutoTracker : Test", "Location Client Connected");
		if (updates) {
			lc.requestLocationUpdates(lr, this);
		} 
 
	} 
 
	@Override 
	public void onDestroy() { 
		if (lc.isConnected()) {
			lc.removeLocationUpdates(this);
		} 
		lc.disconnect();
	} 
 
	@Override 
	public void onDisconnected() { 
	}