Skip to content

Instantly share code, notes, and snippets.

@hitherejoe
Created July 6, 2016 20:52
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/e06924e01374338f3127060b88b37f25 to your computer and use it in GitHub Desktop.
Save hitherejoe/e06924e01374338f3127060b88b37f25 to your computer and use it in GitHub Desktop.
Awareness.SnapshotApi.getLocation(mGoogleApiClient)
.setResultCallback(new ResultCallback<LocationResult>() {
@Override
public void onResult(@NonNull LocationResult locationResult) {
mProgress.setVisibility(View.GONE);
if (locationResult.getStatus().isSuccess()) {
Location location = locationResult.getLocation();
// do stuff with Location object!
}
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment