Nibha Jain
Nibha Jain

Reputation: 8141

How to save Contact details in the phone's address book from any application

I am trying to create an application which will add contact details like phone number, email address and name in the phone's address book, but I have not idea how to do this. I know that we can access the contact details from the address book, but how can we add any new contacts from our application to the address book?

How can this be done?

Upvotes: 0

Views: 8117

Answers (2)

Joshua Dale
Joshua Dale

Reputation: 1793

As I understood it, android contacts are read only.

Edit: Actually it looks like you can modify and create new contacts. http://developer.android.com/guide/topics/providers/contacts-provider.html

Upvotes: 0

Suchi
Suchi

Reputation: 10039

Look at http://developer.android.com/resources/articles/contacts.html

under Example: Inserting a Phone Number

Update/Edit:

Above mentioned url isn't valid anymore. I guess this page is the most relevant now: http://developer.android.com/guide/topics/providers/contacts-provider.html

Upvotes: 1

Related Questions