Reputation: 220
I want to create a notification without any sounds. How can I do this?Thanks.
This is my code: Link
Excuse me my friends.I could not put my code here.
Thank you so much.
Upvotes: 0
Views: 689
Reputation: 1126
i really do not understand your problem but in simpler terms..this is the code for creating notifications in android:
Notification notifica = new Notification();
notifica.flags |= Notification.FLAG_AUTO_CANCEL;
notifica.icon = R.drawable.serie_notification;
notifica.when = System.currentTimeMillis();
And to disable sound you have to add this:
notifica.defaults = 0;
Upvotes: 1