Mute speaker when headset is plugged in

Post your questions and help other users.

Moderator: Martin

Post Reply
User avatar
Shield
Posts: 8
Joined: 02 Aug 2015 08:26
Location: Hamburg
Contact:

Mute speaker when headset is plugged in

Post by Shield » 19 Oct 2017 16:00

Hello,

despite the fact that a headset is used, the audio of certain stream types (at least alarm, ring and notification on my Samsung SII+) is still routed to the speaker as well. :shock:

Because of this, the only way to prevent people from hearing the phone ringing, receiving WhatsApp messages etc. is to set the ringer mode to Silent. Meaning I won't hear such things as well... :(

This is not an Automagic issue but a well known android flaw for years, and seen on many devices (https://issuetracker.google.com/issues/36928407). As far as I know the app SoundAbout is the only one which addresses this issue, and since it works perfectly on my device, I wonder if it would be possible for Automagic to do the same (something like 'if headset is plugged in -> turn off speaker')?

User avatar
Martin
Posts: 4468
Joined: 09 Nov 2012 14:23

Re: Mute speaker when headset is plugged in

Post by Martin » 21 Oct 2017 15:22

Hi,

I'm not sure how SoundAbout does it but you could try to achieve something similar, you could turn the device to silent mode and play a sound with action Sound when a call is ringing.
I'll add a note to investigate what SoundAbout does. I fear that it's in unofficial API territory so I will likely not add support for this anytime soon.

Regards,
Martin

User avatar
Shield
Posts: 8
Joined: 02 Aug 2015 08:26
Location: Hamburg
Contact:

Re: Mute speaker when headset is plugged in

Post by Shield » 28 Oct 2017 05:34

Hi Martin,

thank you for taking a look into it. Since it's always beneficial to become the only alternative to another app, I hope for the best. ;)

Post Reply