When I assign ringtone in android using code it won't paly it in a loop, why?

Posted by masterkapu on Stack Overflow See other posts from Stack Overflow or by masterkapu
Published on 2010-04-16T09:36:48Z Indexed on 2010/04/16 9:43 UTC
Read the original article Hit count: 370

Filed under:
|
|

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?

© Stack Overflow or respective owner

Related posts about android

Related posts about ringtone