I'm developing a VOIP app on Android and before start the call, I set audio mode to MODE_IN_CALL, and use STREAM_VOICE_CALL to play sound.
On most phones it works, but it doesn't work on Atrix 4G (MB860), which is running Android 2.2.2.
I changed the mode to MODE_NORMAL and use STREAM_MUSIC and it can play and record, but the sound is played through speaker not the earpiece.
I've tried using setSpeakerPhoneOn(false) to route sound to earpiece,but this makes no difference.
Has anyone had this problem yet?
Any help would be appreciated!