📜  在无限循环中播放铃声 android - Java 代码示例

📅  最后修改于: 2022-03-11 14:52:29.490000             🧑  作者: Mango

代码示例1
Uri ringtone = RingtoneManager.getDefaultUri(RingtoneManager.TYPE_RINGTONE);
MediaPlayer player = MediaPlayer.create(this, ringtone);
player.setLooping(true);
player.start();