Skip to content

Instantly share code, notes, and snippets.

@hitherejoe
Created July 6, 2016 20:54
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hitherejoe/cf9b9010d4e6198b33ac9e3fa64ad2da to your computer and use it in GitHub Desktop.
Save hitherejoe/cf9b9010d4e6198b33ac9e3fa64ad2da to your computer and use it in GitHub Desktop.
Awareness.SnapshotApi.getDetectedActivity(mGoogleApiClient)
.setResultCallback(new ResultCallback<DetectedActivityResult>() {
@Override
public void onResult(@NonNull DetectedActivityResult detectedActivityResult) {
if (detectedActivityResult.getStatus().isSuccess()) {
ActivityRecognitionResult activityRecognitionResult =
detectedActivityResult.getActivityRecognitionResult();
// do stuff with ActivityRecognitionResult object!
}
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment