1
votes

I've been working on Google sign-in in Android Apps and I've got it working. The problem appears when I try to retrieve profile information. In the API guide in Android developers:

https://developers.google.com/+/mobile/android/people

They explain the way to do it using the function "loadPerson" and the listener "OnPersonLoadedListener". I'm getting an error in Eclipse that says that function is undefined. If you look up into the reference of the PlusClient Class (http://developer.android.com/reference/com/google/android/gms/plus/PlusClient.html), neither loadPerson nor OnPersonLoadedListener appear. And I've found a link to OnPersonLoadedListener:

http://developer.android.com/reference/com/google/android/gms/plus/PlusClient.OnPersonLoadedListener.html

But it's getting 404 Error.

Am I missing something? Is it deprecated? I'm quite confused :/

Thanks in advance.

2

2 Answers

3
votes

Why not use GetCurrentPerson - this will get you the profile information for the currently signed in user. Are you trying to do something different like look up a user's Google+ profile or get the list of the people they have made visible to your app?

0
votes

I think that method is now deprecated and for some reason the documentation is missing. Check this, I believe that's what you're looking for: http://developer.android.com/reference/com/google/android/gms/plus/PlusClient.OnPeopleLoadedListener.html