Is it possible to turn off the silent mode programmatically in 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.
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.
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.
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);
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With