Hi! I am trying to import a vcard into the contacts on my android phone.
I have problems with some fields, e.g Family Name, Job title, Company,... With fields like phone and email it is already working.
Here is a part of my code:
Intent i=new Intent(Intent.ACTION_INSERT);
Uri uri = Uri.parse("content://com.android.contacts/contacts");
i.setData(uri);
i.putExtra(Insert.NAME, "Stewart");
i.putExtra(Insert.NAME, CommonDataKinds.StructuredName.FAMILY_NAME);
Same problems like with NAME are exisiting with POSTAL to split up the address into street, city, ...
Cheers Toby