1

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.

4

2 回答 2

3

为什么不使用GetCurrentPerson - 这将为您获取当前登录用户的个人资料信息。您是否正在尝试做一些不同的事情,例如查找用户的 Google+ 个人资料或获取他们对您的应用程序可见的人员列表?

于 2013-09-25T16:52:26.167 回答
0

我认为该方法现在已被弃用,并且由于某种原因缺少文档。检查这个,我相信这就是你要找的:http: //developer.android.com/reference/com/google/android/gms/plus/PlusClient.OnPeopleLoadedListener.html

于 2013-09-25T16:32:13.713 回答