I have a notification with this code :
Notification notifica = new Notification(); notifica.flags |= Notification.FLAG_AUTO_CANCEL; notifica.icon = R.drawable.serie_notification; notifica.when = System.currentTimeMillis();
with notifica.defaults = notifica.defaults|Notification.DEFAULT_SOUND; I enable the default sound but if I want to disable the sound how can I do ??
Well, it worked for me by doing this:
myNotification.defaults = 0;
Try it out =)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With