Hi All
I need little bit help. i want to add new contact by using Intent. i
have tried following code, but i am able to add only name and phone. i
also want to add Organization and title but dot know what is the
problem i am not able to add these two things if somebody have any
solution please tel me Thanks
My Current code is.
Contacts.Intents.Insert.ACTION,
Contacts.People.CONTENT_URI);
SetLog.log("Contact Address ",
Contacts.People.CONTENT_URI.toString());
addContactIntent.putExtra(Contacts.Intents.Insert.NAME,
companyProfileDAO.getsFullName()); // an example, there
// is other data
// available
addContactIntent.putExtra(Contacts.Intents.Insert.PHONE,
companyInfo.getsPrimaryPhone());
addContactIntent.putExtra(Contacts.Intents.Insert.COMPANY,
companyInfo.getsCompanyName());
addContactIntent.putExtra(Contacts.Intents.Insert.POSTAL,
getAddress(companyInfo));
addContactIntent.putExtra(
Contacts.Intents.Insert.POSTAL_ISPRIMARY,
getAddress(companyInfo));
addContactIntent.putExtra(Contacts.Intents.Insert.POSTAL_TYPE,
getAddress(companyInfo));
addContactIntent.putExtra(Contacts.Organizations.COMPANY, "Endeavour
Software Technology");
addContactIntent.putExtra(Contacts.Organizations.TITLE, "Manager");
startActivityForResult(addContactIntent,
GET_NEW_CONTACT);
--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en