简体   繁体   中英

View / Edit Contact on Android

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.

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM