Hello,

I would like  to detect if microphone in the device or in a headset is
mute during a call.
Currently I've taken the following approach (unfortunately - it does
not work):
1) register PhoneStateListener to detect when a call is started/
finished
2) when call is started then I start a thread that periodically calls
audioManager.isMicrophoneMute() method to discover a microphone
status. (audioManager is obtained by calling getSystemService
(AUDIO_SERVICE) )
3) when call is finished I stop a thread started in bullet 2

Unfortunately audioManager.isMicrophoneMute() always returns 'true',
does not matter if I select or deselect the 'Mute' option in the menu
during a call.

Does anybody know if it is possible to detect the state of a
microphone during a call?
I'd be very grateful for help.

Thanks,
  Meti

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to