我遇到了与Android上的Google登录有关的问题。我已经按照下面的Google教程进行了操作,但它在某些设备上不能用作Galaxy Note 7。
https://developers.google.com/identity/sign-in/android/sign-in
GoogleSignInOptions gso = new GoogleSignInOptions.Builder(GoogleSignInOptions.DEFAULT_SIGN_IN)
.requestEmail()
.build();
dataApplication.mGoogleApiClient = new GoogleApiClient.Builder(this)
.enableAutoManage(this, this)
.addConnectionCallbacks(this)
.addApi(Auth.GOOGLE_SIGN_IN_API, gso)
.build();
SignInButton signInButton = (SignInButton) findViewById(R.id.sign_in_button);
signInButton.setSize(SignInButton.SIZE_STANDARD);
signInButton.setScopes(gso.getScopeArray());
我在回调函数中调试resultCode = 0
(CANCEL)的原因是:
public void onActivityResult(int requestCode,int resultCode,Intent data)
但是,当我在Trello应用程序上测试时,它运行良好,登录弹出窗口似乎有所不同:
有谁知道Trello如何在他们的应用上使用Google登录,以及如何在我的应用上修复此错误。
谢谢!