Answers for "how to play ringtone in android"

1

how to play ringtone in android

val ringtoneUri = RingtoneManager.getDefaultUri(RingtoneManager.TYPE_RINGTONE)
val ringtoneSound: Ringtone = RingtoneManager.getRingtone(requireContext(), ringtoneUri)
ringtoneSound.play()
Posted by: Guest on January-04-2022

Code answers related to "how to play ringtone in android"

Browse Popular Code Answers by Language