How to add the new contacts on android 2.2? -


i need add new contacts on android 2.2 version.

how add fields firstname, lastname, url, nickname, im, addresses , mobile number?

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

the process involves steps, insert name contact+name first, field field.

example phone number:

import android.provider.contactscontract.commondatakinds.phone; ... contentvalues values = new contentvalues(); values.put(phone.raw_contact_id, rawcontactid); values.put(phone.number, phonenumber); values.put(phone.type, phone.type_mobile); uri uri = getcontentresolver().insert(phone.content_uri, values); 

additionally, have read here: http://developer.android.com/reference/android/provider/contactscontract.commondatakinds.html


Comments

Popular posts from this blog

asp.net - repeatedly call AddImageUrl(url) to assemble pdf document -

java - Android recognize cell phone with keyboard or not? -

iphone - How would you achieve a LED Scrolling effect? -