在 Android 上查看/编辑联系人
我正在尝试在我的 Android 应用程序中添加这些功能:
1) 从 Web 服务获取建议联系人列表并在列表视图中显示它们 - 我已经实现并且工作正常
2)当用户选择这些联系人中的任何一个时,我想在本机联系人视图中显示它们。我的 iPhone 开发人员能够在 ABPerson 类的帮助下做到这一点,该类提供了在本机联系人视图页面中显示联系人的功能,而无需将联系人添加到联系人列表。我在 Andoid 中找不到任何此类 API。请建议。
3)当用户想要编辑上述列表中的任何联系人时,我可以从本机电话簿应用程序中呈现“编辑联系人”活动。这工作正常,但我无法删除“完成”和“恢复”按钮。不幸的是,由于这个原因,如果用户单击“完成”,联系人就会添加到手机中,但是,我在这里想要做的是,用户可以修改数据,我会将其保留在内存中,直到导出过程开始。在导出过程中,我会将这些记录插入电话簿中。
请建议我该怎么做。
I am trying to add these functionality in my Android app:
1) Get A list of suggested contacts from a Web Service and Display them in a list view
- This I have implemented and working fine
2) When User selects any of these contacts I want to present them in Native Contact View. My fried who is iPhone developer was able to do this with help of ABPerson class which provides feature to display the contact in native contact view page without adding the contact to contact list. I am not able to find any such API in Andoid. Please suggest.
3) When User want to edit any contact in the above list, I am able to present Edit Contact activity from native Phone Book app. This is working fine, but I am not able to remove the Done and Revert button. Unfortunately due to this, if user click on Done that contact is added to phone, however, what I want to do here is that, user can modify the data and I will keep it in the memory till the export process starts. During the export process I will insert these records in the Phone Book.
Please suggest me how can I do this.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我建议您查看 BusinessCard 示例 和 ContactManager 示例发布在 Android 开发者网站上。
仔细阅读这两篇文章有助于我准确理解联系人 API 中发生的情况。
I would advise you look over the BusinessCard sample and ContactManager sample posted on the Android developer site.
Reading carefully through both of these is what helped me understand exactly what's going on in the contacts API.