I am trying to launch the android native "add or edit contact" activity with some data already in the form. This is the code I am using currently:

Intent intent = new Intent(Intent.ACTION_INSERT_OR_EDIT);
intent.setType(ContactsContract.Contacts.CONTENT_ITEM_TYPE);

intent.putExtra(Insert.NAME, "A name");
intent.putExtra(Insert.PHONE, "123456789");
startActivity(intent);

My problem is that I would like to specify a first name and a last name. I also noticed that there is a StructuredName class which contains constant identifiers for all fields I require. Unfortunately, I was unable to add the StructuredName fields to the intent...

Does anybody know how this is done properly?

Note: I am not trying to add the contact directly, but I want to open a populated "add contact" dialog!

Thanks Duh

Edit
Report