Sunday, January 10, 2016

android how to control the sound is still out of it from the speaker from Tingtongli




            


One of my pictures while recording a program, in the voice of the time, this led me to take pictures of the sound from the speaker is out, the result became a voice from the handset, what is the reason? Seek expert advice! ! !
Reply:
AudioManager

setMode (AudioManager.MODE_IN_CALL);
setMode (AudioManager.MODE_NORMAL);
Reply:
Speaker:
// Close the microphone
mAudioManager.setMicrophoneMute (false);
// Open speaker
mAudioManager.setSpeakerphoneOn (true);
Handset mode:
mAudioManager.setMode (AudioManager.MODE_IN_CALL);

No comments:

Post a Comment