美文网首页
Android系统资源调用

Android系统资源调用

作者: Neo_duan | 来源:发表于2017-12-07 15:02 被阅读17次

//获取系统提示音
private static void startAlarm(Context context) {
Uri notification = RingtoneManager.getDefaultUri(RingtoneManager.TYPE_NOTIFICATION);
if (notification == null) return;
Ringtone r = RingtoneManager.getRingtone(context, notification);
r.play();
}

相关文章

网友评论

      本文标题:Android系统资源调用

      本文链接:https://www.haomeiwen.com/subject/mhgdixtx.html