Which API calls do I have to make to get the hardware volume control buttons to control the speaker volume when in speakerphone mode ??
I have tried to call setVolumeControlStream(AudioManager.STREAM_MUSIC)
but that doesn't help. The HW vol buttons only adjusts the speaker volume in handset mode. As soon as I switch to speakerphone mode, the HW buttons don't control the speaker volume anymore.
This is how I switch to speakerphone mode:
thisAudioMgr.setMode(AudioManager.MODE_IN_COMMUNICATION);
thisAudioMgr.setSpeakerphoneOn(true);