I answer myself, maybe is the solution from problem, the following

    private void changeTonetoContact(int contactId,String uriString)
    {
     ContentValues values = new ContentValues();
     values.put(ContactsContract.Contacts.CUSTOM_RINGTONE, uriString);
     getContentResolver().update(ContactsContract.Contacts.CONTENT_URI,
values, Contacts._ID + "=" + contactId, null);

    }

2012/7/20 David Toledo <dtole...@gmail.com>

> Hi All
> How can I set the different ringtone for an single contact from address
> book?
> Thanks
> David
>
>
>

-- 
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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to