Advertisement
Guest User

Untitled

a guest
Nov 26th, 2014
179
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.77 KB | None | 0 0
  1. Plus.PeopleApi.getCurrentPerson(googleApiClient)
  2.  
  3. googleApiClient = new GoogleApiClient.Builder(getActivity())
  4. .addConnectionCallbacks(this)
  5. .addOnConnectionFailedListener(this)
  6. .addApi(Plus.API)
  7. .addScope(Plus.SCOPE_PLUS_PROFILE)
  8. .addScope(Plus.SCOPE_PLUS_LOGIN)
  9. .build();
  10.  
  11.  
  12.  
  13. @Override
  14. public void onConnected(Bundle bundle) {
  15.  
  16. Plus.PeopleApi.loadVisible(googleApiClient, null).setResultCallback(new ResultCallback<People.LoadPeopleResult>() {
  17. @Override
  18. public void onResult(People.LoadPeopleResult loadPeopleResult) {
  19.  
  20. }
  21. });
  22.  
  23.  
  24. if (Plus.PeopleApi.getCurrentPerson(googleApiClient) != null) {
  25. .....
  26. }
  27.  
  28.  
  29.  
  30. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement