Android 弹出窗口不';不显示未锁定的成就
我在显示未锁定成就的弹出窗口时遇到问题 我环顾四周,但没有找到解决我具体问题的方法 我的主要活动中有以下代码:Android 弹出窗口不';不显示未锁定的成就,android,google-play-games,Android,Google Play Games,我在显示未锁定成就的弹出窗口时遇到问题 我环顾四周,但没有找到解决我具体问题的方法 我的主要活动中有以下代码: GoogleSignInOptions gso = new GoogleSignInOptions.Builder(GoogleSignInOptions.DEFAULT_GAMES_SIGN_IN) .requestScope(Games.SCOPE_GAMES) .requestIdToken(getString(R.string.id_oauth_web_clie
GoogleSignInOptions gso = new GoogleSignInOptions.Builder(GoogleSignInOptions.DEFAULT_GAMES_SIGN_IN)
.requestScope(Games.SCOPE_GAMES)
.requestIdToken(getString(R.string.id_oauth_web_client)
.requestEmail()
.build();
GoogleApiClient mGoogleApiClient = new GoogleApiClient.Builder(this)
.addApi(Auth.GOOGLE_SIGN_IN_API, gso)
.setViewForPopups(findViewById(android.R.id.content))
.setGravityForPopups(Gravity.TOP | Gravity.CENTER_HORIZONTAL)
.build();
// Unlock a test achievement just starting the app
Games.getAchievementsClient(MainActivity.this, GoogleSignIn.getLastSignedInAccount(this))
.unlockImmediate(getString(R.string.ach_test));
代码执行时没有问题,但是弹出窗口没有出现
欢迎回来弹出窗口显示完美,如果我检查成就列表,我可以看到它被解锁
我错过了什么