有消息来了,让系统提示音响一下,,获取系统提示音的方法很简单。直接上代码
//提示音
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();
}
就这样很简单