Android Question hear to recording from earpiece?

ilan

Expert
Licensed User
Longtime User
hi

is it possible to listen to a recording i recorded via audio recorder through the earpiece and NOT through the speaker?

i found this: http://stackoverflow.com/questions/2119060/android-getting-audio-to-play-through-earpiece

B4X:
    //PLAY ON EARPIECE
    mPlayer.setAudioStreamType(AudioManager.STREAM_VOICE_CALL);
    audioManager.setMode(AudioManager.MODE_IN_CALL);
    audioManager.setSpeakerphoneOn(false);

    //PLAY ON SPEAKER
    mPlayer.setAudioStreamType(AudioManager.STREAM_MUSIC);
    audioManager.setMode(AudioManager.MODE_IN_CALL);
    audioManager.setSpeakerphoneOn(true);

thanx
 

ilan

Expert
Licensed User
Longtime User
Isn't audio always redirected to the headphone once you plug it in?

galaxy-s6-edge_gallery_front_black.png
 
Upvote 0

ilan

Expert
Licensed User
Longtime User
Upvote 0
Top