android - 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 选择电子邮件
解决方案
推荐阅读
- java - Java中传统集合和并发集合中的remove()方法有什么优势?
- python - Python-循环遍历 Pandas Groupby 对象
- java - Dagger 在 Android 应用程序中生成重复的“XXXDialogFragment_MembersInjector”类(程序类型已经存在)
- vba - 在 MS Access 中使用 DLookup 时无效使用 Null
- flutter - 找不到 ubuntu 18.04 'flutter' 命令上的颤振错误
- node.js - Sequelize with Postgresql order by with null values first
- python - How to generate a new instance of a class in recursion
- sql - How to replace only some Guids from a table to another, under conditions
- c++ - Implementing AES-128 Mix-Column Function in C++
- spring - @Value 是否支持让默认值引用另一个 @Value?