Code example for LocationClient

Methods: disconnect, isConnected

0
		return this.locationServices;
	} 
	 
	protected void terminateLocationClient() { 
		if (this.locationServices != null) {
			if (this.locationServices.isConnected()) {
				this.locationServices.disconnect();
			} 
			 
			// Destroy the current location client 
			this.locationServices = null;
		} 
	} 
	 
	@Override 
	public void onConnected(Bundle arg0) {
		Log.d(Constants.TAG, this.getClass().getSimpleName() + " connected");
	} 
	 
	@Override 
	public void onDisconnected() {