I have a countdown timer in my activity and when it reaches zero I send a notification to the status bar which also plays a custom wav file to alert the user. I only want t
NotificationCompat.Builder builder= new NotificationCompat.Builder(this);
three ways to setSound
builder.setDefaults(Notification.DEFAULT_SOUND); builder.setSound(RingtoneManager.getDefaultUri(RingtoneManager.TYPE_NOTIFICATION)); builder.setSound(Settings.System.DEFAULT_NOTIFICATION_URI);