As the title suggests, I want to mute the sound before the call was connected. I set stream by below code:
mAudioManager.setStreamMute(AudioManager.STREAM_VOICE_CALL, true);
and also try code:
mAudioManager.setStreamVolume(AudioManager.STREAM_VOICE_CALL, 0, 0);
It can make the sound at the lowest, but it is not silent. There is still a small sound. If I play another music this time, they will mix together. I don't want this suitation.
Do any one have any ideas to avoid this issue? Many thanks.
I think This code from my mp3 player should help u to solve the issue.