Code example for LocationClient

Methods: disconnectisConnectedremoveLocationUpdates

0
		// 1. 位置取得サービスに接続! 
		_locationClient.connect();
	} 
 
	private void stopLocate() { 
		if (_locationClient == null || !_locationClient.isConnected()) {
			return; 
		} 
		 
		_locationClient.removeLocationUpdates(_locationListener);
		_locationClient.disconnect();
//		 ConnectionCallbacks.onDisconnected が呼ばれるまで待った方がいい気がする 
	} 
} 
Experience pair programming with AI  Get Codota for Java