显示号码、联系人姓名以及可能的联系人图像的联系人选择器?
有没有办法显示同时包含号码和联系人姓名的联系人选择器?
现在我正在呼叫选择器:
startActivityForResult(
new Intent(Intent.ACTION_PICK,Contacts.Phones.CONTENT_URI),
1);
但结果我只得到联系人姓名,而没有可见的号码。更糟糕的是,如果一个联系人有两个号码,那么它就会出现两次。
Is there any way to display contact picker that has both number and contact name?
Now I'm calling picker:
startActivityForResult(
new Intent(Intent.ACTION_PICK,Contacts.Phones.CONTENT_URI),
1);
But in a result I get only Contact names without visible numbers. To make things worse, if one contact has two numbers it occurs twice.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
您可以在 https://github.com/codinguser/android_contact_picker 查看免费的 Android 联系人选择器库
它允许用户
披露:我是这个库的作者
You can check out the free Android contact picker library at https://github.com/codinguser/android_contact_picker
which allows a user to
Disclosure: I am the author of this library
试试这个。它就像联系人选择器,但在联系人姓名下列出了可点击的电话号码
try this. its just like the contact picker, but lists clickable phone numbers under the contacts name
我遇到了类似的问题,找不到任何方法来一起显示所需的信息。
最后,我创建了一个 ListView 并显示联系人以及号码信息。您可以参考本教程轻松构建一个 - http://www.droidnova。 com/first-list-application,37.html
I had the similar problem and could not find any way to display the required information together.
Finally I created a ListView and display the Contact along with the Number information. You can refer to this tutorial to build one easily - http://www.droidnova.com/first-list-application,37.html