매우 이상한 일이 있습니다.
사용자 로그인이 시작될 때마다 "계정 선택"보기가 나타나고 계정을 선택하고 확인을 클릭하면 로그인이 다시 시작되고 동일한보기가 반환됩니다. 취소를 클릭하면 실패한 로그인으로 돌아갑니다. 왜 이런 일이 발생합니까?Google Play 게임 서비스 로그인에 실패했습니다.
03-06 13:53:06.797: D/PhoneWindow(2967): couldn't save which view has focus
because the focused view [email protected] has no id.
내가 지금처럼 구현했습니다 :
public class myapp extends BaseGameActivity {
...
static Context mContext;
boolean mInSignInFlow = false;
protected void onCreate(Bundle savedInstanceState){
super.onCreate(savedInstanceState);
mContext = myapp.this;
if(GooglePlayServicesUtil.isGooglePlayServicesAvailable (mContext) == ConnectionResult.SUCCESS){
GoogleApiClient.Builder builder =
new GoogleApiClient.Builder(this);
builder.addApi(Games.API)
.addScope(Games.SCOPE_GAMES);
mClient = builder.build();
}
}
@Override
protected void onStart() {
super.onStart();
if (!mInSignInFlow) {
// auto sign in
mClient.connect();
}
}
@Override
public void onSignInFailed() {
Log.w("Sign In", "Failed");
}
@Override
public void onSignInSucceeded() {
mInSignInFlow = true;
Log.w("Sign In", "Success");
}
public static void gameServicesSignIn() {
((myapp)mContext).runOnUiThread(new Runnable() {
public void run() {
((myapp)mContext).beginUserInitiatedSignIn();
}
});
}
내가 시작하고 로그온 "실패 로그인 '얻을
다음 시작의 기호 앞에 로그 캣에 등장 당신이 OpenService (cocos2d-x의 경우)를 사용한다면,
더 많은 코드를 게시 할 수 있습니까? 로그인 화면을 어떻게 알리고 있습니까? –
@PhilippeDavid 편집보기 – GameDevGuru