Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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
You can’t perform that action at this time.