Adding New Contact With Photo Via Contactscontract And Contentprovider
I've been trying all day to add contact with photo to Android Contacts. Finally I'm adding picture to contact, but I can't add any name or phone number. Contact is displaying as '(
Solution 1:
Ok, I've fixed it. On "name" ops.add I wrote .withValue(ContactsContract.Data.RAW_CONTACT_ID, 0)
instead of .withValueBackReference(ContactsContract.Data.RAW_CONTACT_ID, 0)
. Now everything works fine.
Post a Comment for "Adding New Contact With Photo Via Contactscontract And Contentprovider"