Skip to content

Instantly share code, notes, and snippets.

@ianbarber
Last active April 14, 2016 09:21
Show Gist options
  • Save ianbarber/9060530 to your computer and use it in GitHub Desktop.
Save ianbarber/9060530 to your computer and use it in GitHub Desktop.
@Override
public void onResult(People.LoadPeopleResult loadPeopleResult) {
if (!loadPeopleResult.getStatus().isSuccess()) {
Log.e(TAG, loadPeopleResult.getStatus().toString());
return;
}
PersonBuffer people = loadPeopleResult.getPersonBuffer();
Log.d(TAG, "" + people.getCount());
for(Person p : people) {
Log.d(TAG, p.getDisplayName()); // For example.
}
people.close();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment