Code example for ActivityRecognitionClient

Methods: requestActivityUpdates

0
	} 
	@Override 
	public void onConnected(Bundle arg0) {
		Intent intent = new Intent(this, ActivityRecognitionService.class);
		pIntent = PendingIntent.getService(this, 0, intent,PendingIntent.FLAG_UPDATE_CURRENT);
		arclient.requestActivityUpdates(1000, pIntent);   
	} 
	@Override 
	public void onDisconnected() { 
	} 
 
	 
} 
Contextual code suggestions in your IDE  Get Codota for Java