首页 > 解决方案 > Android Kotlin AccountPicker.newChooseAccountIntent() 与 com.google 以外的其他提供商一起使用

问题描述

我希望用户通过 newChooseAccountIntent() 使用帐户选择器选择一个帐户。使用 arrayOf("com.google") 设置 allowableAccountTypes 时,仅显示具有 google 电子邮件地址的帐户。但是,每当我输入其他内容以过滤特定提供商(如 yahoo 或 gmx)时,无论我输入什么或如何输入(如 yahoo.com、com.yahoo、yahoo 等),都不会显示任何帐户。但是,当传递 null 时,肯定会列出所有帐户,包括具有 yahoo 或 gmx 地址的帐户。

7年前在这篇文章中提出了一个类似的问题,但所有提供的答案都没有解决我的问题。 使用 AccountPicker.newChooseAccountIntent 选择电子邮件

标签: androidkotlinemailprovideraccount

解决方案


推荐阅读