具有搜索功能的联系人选择器

发布于 2024-09-03 08:20:45 字数 259 浏览 3 评论 0原文

这个问题1描述了一种如何显示电话号码列表并选择其中一个的方法如果我的应用程序需要电话号码。但是,如果我有一个巨大的联系人列表,仅显示列表是不够的,还需要进行过滤(按联系人姓名)的可能性。是否有一种标准方法来显示具有选择可能性和过滤可能性的电话列表? (我不想发明自己的)

sdk 2.0及更低版本的问题有解决方案吗?

This question1 describes a way how to show list of phone numbers and select one of them if my app needs a phone number. But image if I have a huge contact list, it is not enough to just show list but possibility for filtering (by contact's name) is also needed. Is there a standard way to show phones list with picking possibility and with filtering possibility? (I wouldn't like to invent my own)

Is there a solution for the problem for sdk 2.0 and lower?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

黄昏下泛黄的笔记 2024-09-10 08:20:45

您应该使用 ContactsContract.Contacts ,然后使用标志 CONTENT_FILTER_URI

You should use ContactsContract.Contacts and then the Flag CONTENT_FILTER_URI.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文