Hi everyone,
I change the device’s volume using setStreamVolume() from AudioManager. According to the Android Developer documentation:
setStreamVolume() - Android Developers
One of the available flags is FLAG_REMOVE_SOUND_AND_VIBRATE, which, as stated in the documentation, should clear any queued or ongoing sounds and vibrations when changing the volume:
FLAG_REMOVE_SOUND_AND_VIBRATE - Android Developers
Unfortunately, this flag does not work on Samsung devices, while it works correctly on others like Pixel and Xiaomi.
The problem:
When setting the ring volume to zero, Samsung devices still produce a buzz/vibration, which is frustrating for users—especially at night when the phone is on a bedside table.
My app automatically adjusts volumes using a scheduler, and this change often happens while the user is already asleep. On Samsung devices, the unwanted vibration wakes them up—not ideal!
Any solutions?
Has anyone found a way to properly suppress this vibration on Samsung devices?
Thanks in advance!