title: Automatically silence the sound volume of Android Phone programmatically?
body: <p>I'm developing an application that can turn off the sound of Android Phone automatically. How can I detect the volume of the sound and turn it off programmatically?</p>
  
  <pre><code>    if (hour == myTime.getHour() &amp;&amp; minute == myTime.getMinute()) {
          if (Settings.getSetMyTime(this))
              showNotificationAlarm(R.drawable.icon,
                      "It's time to work");
                      ///so, i want to add the silet function here..help me, please?
      }
  </code></pre>
  
  <p>Thanks in advance.</p>