Code example for ActivityRecognitionClient

Methods: removeActivityUpdates

0
		 
	} 
 
	public void stopActivityRecognitionScan() { 
		try { 
			mActivityRecognitionClient.removeActivityUpdates(callbackIntent);
			Log.d(TAG, "stopActivityRecognitionScan");
			 
		} catch (IllegalStateException e) {
			// probably the scan was not set up, we'll ignore 
		} 
	} 
 
	@Override 
	public void onConnectionFailed(ConnectionResult result) {
		Log.d(TAG, "onConnectionFailed:" + result.toString());
	} 
 
	/** 
	 * Connection established - start listening now 
	 */