i want to play the ringtone selected in the settings of the device, but in loop mode.
here you can see how to play it only once: How to play ringtone/alarm sound in Android
Uri notification = RingtoneManager.getDefaultUri(RingtoneManager.TYPE_NOTIFICATION);
Ringtone r = RingtoneManager.getRingtone(getApplicationContext(), notification);
r.play();
I need to make it play in loop mode, but i don't know how to do it...
thanks