Code example for LocationClient

Methods: connect, isConnected, isConnecting

0
	 */ 
	protected GooglePlayServicesClient getLocationClient() {
		if (this.locationServices == null) {
			this.locationServices = new LocationClient(this.context, this, this);
		} 
		if (!this.locationServices.isConnected() && !this.locationServices.isConnecting()) {
			// This call returns immediately, but the request is not complete 
			// until onConnected() or onConnectionFailure() is called. 
			this.locationServices.connect();
		} 
		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;