title: What is the difference between: notification.flags and notification.defaults?
body: <p>In my test code, I used </p>
  
  <pre><code>        notification.flags |= Notification.DEFAULT_SOUND;
      notification.flags |= Notification.DEFAULT_LIGHTS;
  </code></pre>
  
  <p>This did not work, and according to the answer I got on <a href="https://stackoverflow.com/questions/6616180/whats-wrong-with-my-code-notification-no-sound-no-vibrate/6616286#6616286">another question</a> I changed .flags to .defaults and it works.</p>
  
  <pre><code>        notification.defaults |= Notification.DEFAULT_SOUND;
      notification.defaults |= Notification.DEFAULT_LIGHTS;
  </code></pre>
  
  <p>In the <a href="http://developer.android.com/reference/android/app/Notification.html" rel="nofollow noreferrer">documentation</a> both fields: flags and defaults are the same. </p>
  
  <p>When do I use which?
  Can I set 2 flags of the same family?</p>