I don't know if you still need it, but it should look like this:

ops.add(ContentProviderOperation.newInsert(android.provider.ContactsContrac
t.Data.CONTENT_URI)
                                         
.withValueBackReference(Data.RAW_CONTACT_ID,
rawContactInsertIndex)
                                 .withValue(Data.MIMETYPE,
Photo.CONTENT_ITEM_TYPE)
                                 .withValue(Data.IS_SUPER_PRIMARY, 1)
                                 .withValue(Photo.DATA15,
yourPicture)
                                 .build());

yourPicture is a byte[].

-- 
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

Reply via email to