0

我希望用户从我的 Android 应用程序中选择一个现有帐户。我在用着

Intent googlePicker = AccountManager
        .newChooseAccountIntent(null, null, new String[]{GoogleAuthUtil.GOOGLE_ACCOUNT_TYPE},
                true, null, null, null, null);
a.startActivityForResult(googlePicker, ACCOUNT_REQUEST_CODE);

但我在文档中找不到避免请求创建新帐户的方法。有没有可能实现?

在此处输入图像描述

4

1 回答 1

0

你需要谷歌登录:

首先访问以下链接:

https://developers.google.com/identity/sign-in/android/start-integrating

然后按照本教程进行操作:

https://androidclarified.com/google-signin-android-example/

于 2019-01-23T12:25:36.030 回答