Skip to content

Instantly share code, notes, and snippets.

@hitherejoe hitherejoe/location.java Secret
Created Jul 6, 2016

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