title: How to show a notification without a sound java
body: <p>How can I make a notification that doesn't make a sound when I build it? I am building a notification, and my users don't like the fact that it makes a sound.</p>
  <p><strong>How can I change it to a silent one / no sound at all?</strong></p>
  <p>How I show notification:</p>
  <pre><code>android.support.v7.app.NotificationCompat.Builder builder = new android.support.v7.app.NotificationCompat.Builder(main);
  builder.setStyle(new android.support.v7.app.NotificationCompat.BigTextStyle().bigText(text));
  builder.setSmallIcon(R.drawable.app);
  builder.setContentTitle(&quot;Rooster Maandag:&quot;);
  builder.setOngoing(false);
  builder.setAutoCancel(true);
  builder.setSilent(true);
  builder.setDefaults(Notification.DEFAULT_ALL);
  builder.setVisibility(NotificationCompat.VISIBILITY_PUBLIC);
  builder.setPriority(NotificationCompat.PRIORITY_DEFAULT);
  notificationManager = (NotificationManager) main.getSystemService(main.NOTIFICATION_SERVICE);
  notificationManager.notify(NOTIFICATION_ID, builder.build());
  </code></pre>
  <p>I tried to search on google, but the only results I get is HOW to play a sound, not HOW to not play a sound...</p>
  <p><strong>Edit</strong>
  It possibly is a duplicate in some people's eyes, but in mine I could not find out an alternative for the there specified default, while this new method is called setDefaults</p>