Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is it possible to turn off the silent mode programmatically in android?

Tags:

java

android

Is it possible to turn off the silent mode programmatically in Android?

like image 268
whiteberryapps Avatar asked Jul 28 '12 08:07

whiteberryapps


People also ask

How do I permanently turn off silent mode on Android?

Use the Settings menu. Select the "Settings" icon from the Android phone's home screen. Select "Sound Settings," then clear the "Silent Mode" check box.

Why is my phone automatically silent?

The first thing to do is to ensure that the Do Not Disturb mode is disabled. When enabled, this mode will silence your notifications and incoming calls by default. So, what you should do is disable it and check for improvements. Usually, there's a tile in the Quick Access menu where you can toggle the mode on or off.

How do I make my phone ring on silent?

When your physical search for your lost Android has proven fruitless, just go to android.com/find. Sign in to your Google account, select Make it ring. Even if your phone is on silent, it'll ring. Alternatively, you can use the Find My Device app installed on another Android.


1 Answers

Solution for you .

AudioManager am; am= (AudioManager) getBaseContext().getSystemService(Context.AUDIO_SERVICE);  //For Normal mode am.setRingerMode(AudioManager.RINGER_MODE_NORMAL);  //For Silent mode am.setRingerMode(AudioManager.RINGER_MODE_SILENT);  //For Vibrate mode am.setRingerMode(AudioManager.RINGER_MODE_VIBRATE); 
like image 183
Chirag Avatar answered Sep 21 '22 17:09

Chirag