title: How to programmatically Mute/Silent devices running Lollipop?
body: <p>How I can make my phone mute in lollipop devices programmatically? For pre-lollipop devices, it can be done pretty well using <code>AudioManager</code> class but In android 5.0 and above, the device can be kept on Vibrate mode but I am not able to mute it. Can anyone help me out that how can we programmatically change phone's volume modes between NONE, PRIORITY and ALL?</p>
  
  <p>Thanks.</p>