小编Bri*_*ier的帖子

Google+使用Play Services 6.5.87登录(GoogleApiClient) - Android

在Play Services 6.1.71我使用的是:

mPlusClient = new PlusClient.Builder(this,this,this).setActions("http://schemas.google.com/AddActivity", "http://schemas.google.com/BuyActivity").setScopes(Scopes.PLUS_LOGIN, Scopes.PROFILE).build();

但在Google Play Services 6.5.87中,Google建议将PlusClient更改为GoogleApiClient.Builder.但是我无法像以前那样获得用户信息:

mPlusClient.getAccountName() 
Run Code Online (Sandbox Code Playgroud)

要么

mPlusClient.getCurrentPerson()
Run Code Online (Sandbox Code Playgroud)

如何检索用户信息?我认为Google文档已过时.希望您能够帮助我.谢谢.

android google-plus google-play-services

5
推荐指数
1
解决办法
1119
查看次数