Code example for ActivityRecognitionClient

0
		getActivityRecognitionClient().connect();
	} 
 
	public ActivityRecognitionClient getActivityRecognitionClient() {
		if (mActivityRecognitionClient == null) {
			setActivityRecognitionClient(new ActivityRecognitionClient(mContext, this, this));
		} 
		return mActivityRecognitionClient;
	} 
 
	private void requestDisconnection() { 
		getActivityRecognitionClient().disconnect();
		setActivityRecognitionClient(null); 
	} 
 
	public void setActivityRecognitionClient(ActivityRecognitionClient client) {
		mActivityRecognitionClient = client;
	} 
 
	@Override 
Contextual code suggestions in your IDE  Get Codota for Java