views:

46

answers:

0

I use this code:

ContentValues values = new ContentValues();
values.put(ContactsContract.Data.CUSTOM_RINGTONE, Environment.getExternalStorageDirectory().getPath() + "/ring.wav");
getContentResolver().update(ContactsContract.Contacts.CONTENT_URI, values , "DISPLAY_NAME = 'Ani'", null);

It works great but it play only one time. How do I make it to play in a loop?