Our website uses necessary cookies to enable basic functions and optional cookies to help us to enhance your user experience. Learn more about our cookie policy by clicking "Learn More".
In order to use AndroidManager class, you have to first create an object of AudioManager class by calling the getSystemService() method. Once you instantiate the object of AudioManager class, you can use setRingerMode method to set the audio or ringer profile of your device.