我正在将Google Play游戏服务集成到我的应用中并实施BaseGameActivity
,但是当我登录新用户时,排行榜未显示。
mGoogleApiClient = new GoogleApiClient.Builder(getApplicationContext())
.addConnectionCallbacks(this)
.addOnConnectionFailedListener(this)
.addApi(Plus.API).addScope(Plus.SCOPE_PLUS_LOGIN)
.addApi(Games.API).addScope(Games.SCOPE_GAMES)
.addApi(Drive.API).addScope(Drive.SCOPE_APPFOLDER)
.setViewForPopups(findViewById(android.R.id.content))
.build();
显示主板
startActivityForResult(
Games.Leaderboards.getLeaderboardIntent(getGameHelper().getApiClient(),
getString(R.string.leaderboard_bxh)), 0);