Skip to content Skip to sidebar Skip to footer

How To Edit Contact From Context Menu

I have been developing a contact app, it allows : call, sms, delele, etc ... and Edit Contact. When user click and hold on a contact, a context menu show (picture below). The actio

Solution 1:

For Edit function you can use Edit intent to call default contact app

Intenti=newIntent(Intent.ACTION_EDIT);
i.setData(Uri.parse(ContactsContract.Contacts.CONTENT_LOOKUP_URI + "/" + id)); //contact's id
startActivityForResult(i, idEDIT_CONTACT);

For sending Email have a look at this question or this

Post a Comment for "How To Edit Contact From Context Menu"