In this post, I will be discussing about using AudioManager Class in Android applications. AudioManager Class provides access to volume and ringer mode control which was added in API level 1.
I wrote separate post about using AudioManager in getting and setting the current device’s volume (Media player, Alarm, Notification etc) long back. (Read: Android Seekbar example – Set Device Volume)
But in this post, I am going to discuss about using AudioManager in getting and setting the ringer mode (Silent, Vibrate and Normal).