Programming/Android

[Android] 알림음 제어하기.

Fimtrus 2013. 2. 21. 17:56
Uri uri = RingtoneManager.getActualDefaultRingtoneUri(
getApplicationContext(), RingtoneManager.TYPE_NOTIFICATION);
Ringtone ringtone = RingtoneManager
.getRingtone(getApplicationContext(), uri);
ringtone.play();