Code example for ActivityRecognitionClient

Methods: connect

0
			public void onClick(View v) {
				 
				if (!activityPollingInProgress) {
					System.out.println("startActivityPolling");
					activityPollingInProgress=true;
					activityRecognitionClient.connect();
				} else { 
					System.out.println("Request already underway");
				} 
			} 
		}); 
         
        setUpMapIfNeeded(); 
         
        //locationClient.connect(); 
        //retrieveLocationUsingPendingIntent(); 
 
 
    } 
 
    @Override