How to use "setMasterVolume" in Android Application.? and if i use that API, what is the purpose?
<p>How to use "setMasterVolume" in Android Application.? and if i use that API, what is the purpose ?  </p>

<p>Android 4.2.
setMasterVolume() API is in AudioManager.java file but when i write an application, it is giving error saying that "undefined for the type AudioManager"</p>

<p>Could any please explain about it and why i am not able to access it? and what is purpose of setMasterVolume API?</p>
