Can't update contact details in android using code
- by masterkapu
I'm trying to update/change contact ringtone using this code:
ContentValues values = new ContentValues();
values.put(ContactsContract.Data.CUSTOM_RINGTONE, "D:/TempDownloads/BurpSounds/Alex.wav");
getContentResolver().update(ContactsContract.Contacts.CONTENT_URI, values , "DISPLAY_NAME = 'Ani'", null);
I get the message: " the application has stopped unexpectedly"
what is wrong with my code and how do I do it?
thanks