I\'m attempting to follow Google\'s Activity Recognition example.
In the example they start the activity recognition when you click a button, however I\'d like to ju
The problem ended up that I was adding the LocationServices.API to the Google API Client, but I wasn't adding ActivityRecognition.API. After I updated my call to this, it worked:
protected synchronized void buildGoogleApiClient() {
mGoogleApiClient = new GoogleApiClient.Builder(getActivity())
.addConnectionCallbacks(this)
.addOnConnectionFailedListener(this)
.addApi(LocationServices.API)
.addApi(ActivityRecognition.API)
.build();
}