This is an example of Automate flow. To learn more about Automate for Android phones, click here.
Your Android phone is likely to have 3 general sound profiles:
- Normal - ringer (for incoming calls) and notification will play a sound.
- Vibrate - ringer and notification will mute. The phone will vibrate when there is incoming call.
- Silent - ringer and notification will mute. There will be no vibration as well.
- Ringer - for ringing tone sound
- Notification - for notification sound
- Media - for music and sound in apps, including Whatsapp, Facebook, Youtube, etc.
- Alarm - for alarm sound
- In-call - for phone conversation
- System - for shutter sound of camera, screen lock/unlock sound, keyboard sound, etc.
Note that the sound volume of Media, Alarm and In-call remains unchanged. This means when your phone is set to Vibrate or Silent mode, your instant messenger apps will remain unmuted and will still giving out sound, because Media sound remains unchanged.
You might want to also mute the Media sound when you set your phone to Vibrate or Silent mode, and un-mute the Media sound when you set it back to Normal mode.
Of course, there are apps that enable you to set additional customized sound profiles, but I am going to share with you how you can do it yourself by using a simple Automate flow.
The flow below will help you toggle between Vibrate and Normal sound mode. Since the Notification and System sound will follow when the Ringer sound changed, you just need to toggle the Ringer mode.
The beauty of this flow is on its next step. When you toggle the Ringer mode to Vibrate, it will also mute the Music audio. When you toggle it to Normal, it will unmute the Music audio accordingly.
To use this flow, run it once to enter Vibrate mode, and run it again to go back to Normal mode. The flow will display a message about the mode you have changed to, and end.
You can also make it a single flow to toggle among Silent, Vibrate and Normal mode. That will require another block to check "Is ringer mode Vibrate?" when "Is ringer mode Normal?" returned a No. If this returns Yes, you might want to set ringer mode Silent, mute audio Music, and display "Silent mode" in the toast.