public static void sendSound(Context mContext) { //上下文 Uri mUri= RingtoneManager.getDefaultUri(RingtoneManager.TYPE_NOTIFICATION); //获取系统默认的notification提示音,Uri:通用资源标志符 Ringtone mRingtone = RingtoneManager.getRingtone(mContext, mUri); mRingtone.play(); }
时间: 2024-10-11 06:42:49