title: Android how to turn on do not disturb (dnd) programmatically
body: <p>How do I turn on/off 'do not disturb' (dnd) programmatically in Android?  Is was hoping this would give me something but it doesn't:</p>
  
  <pre><code>Settings.System.putInt(getContentResolver(), Settings.System.DO_NOT_DISTURB, 1);
  </code></pre>