Code example for LocationClient

Methods: isConnected, requestLocationUpdates

0
		this.startRequestUpdate();
	} 
 
	public void startRequestUpdate() { 
		this.updatingLocation = true;
		if (this.mClient.isConnected()) {
			this.mClient.requestLocationUpdates(this.mRequest, this);
		} 
	} 
 
	public void stopUpdateLocation() { 
		if (this.mClient.isConnected()) {
			this.mClient.removeLocationUpdates(this);
		} 
		this.updatingLocation = false;
	} 
	 
	public void conncetClient() { 
		if (!this.mClient.isConnected()) {
			this.mClient.connect();
		}