Android系统资源调用

//获取系统提示音
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系统资源调用)