jjzjj

getLastSignedInAccount

全部标签

android - 即使在删除应用程序后,Google Drive Android API 也会返回成功

我正在使用新的GoogleDriveAndroidAPI。这是我从Google'sandroid-samplesrepo复制的演示代码.GoogleSignInAccountsignInAccount=GoogleSignIn.getLastSignedInAccount(this);if(signInAccount!=null&&signInAccount.getGrantedScopes().containsAll(requiredScopes)){initializeDriveClient(signInAccount);}else{...}我面临的问题是,即使我从云端硬盘中删除该

java - GoogleSignIn.getLastSignedInAccount() 返回具有空字段的帐户

我正在我的项目中实现GoogleSign-in,但这个问题很难。当我没有签名时,GoogleSignIn.getLastSignedInAccount(activity)返回null,根据Google'sdocumentation,这是它应该做的。.当我重新启动应用程序时,它返回一个GoogleSignInAccount,但所有字段都为null。谷歌说:Foradditionalprofiledatathatmightbeavailable,seeGoogleSignInAccount.Notethatanyoftheprofilefieldscanbenull,dependingon