As the title states AudioManager.isMicrophoneMute()
always returns false, no matter what.
The setup:
Manifest includes this permission because of an older bug that could be related to this. Old bug was about checking if headphones are used. Doesn't help, but doesn't hurt either.
<uses-permission android:name="android.permission.MODIFY_AUDIO_SETTINGS" />
audioManager.getMode() == audioManager.MODE_IN_CALL
is true
. Ok, we're good audioManager.isMicrophoneMute()
is false
- ok, we're still goodaudioManager.isMicrophoneMute()
and it's still false
- no good. should be true.So is this a broken API? Or do I need some other permissions? Or does this not work on Emulator??
Thank you.
This now works in 5.x Lollipop. Still doesn't work in 4.x. Maybe Google just won't fix it for the older OS.