[android-developers] Re: add phone number to contact
I made a little "spot the error" game for you:
builder = ContentProviderOperation.newInsert(ContactsContract. Data.CONTENT_URI);
builder.withValue(ContactsContract.Data.CONTACT_ ID, contactID);
builder.withValue(ContactsContract.Data. MIMETYPE,ContactsContract. CommonDataKinds.Email.CONTENT_ ITEM_TYPE);
builder.withValue(ContactsContract. CommonDataKinds.Email.DATA, number);
builder.withValue(ContactsContract. CommonDataKinds.Email.TYPE, ContactsContract. CommonDataKinds.Email.TYPE_ MOBILE;
ops.add(builder.build());
can someone help me with that please coz i dont want to use contentvalue to add it
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home