title: Route MIC input through headset and AUDIO output through phone's speaker
body: <p>is there a way to route microphone input through headset and use <strong>simultaneously</strong> the AUDIO output through smartphone's speaker ?</p>
  
  <p>I've been watching around for hours now and I saw that it's clearly impossible on iOS but what about Android..</p>
  
  <p>I'm using a Samsung Galaxy S4.</p>
  
  <p>Here is a part of my code to route the audio output through the speaker even if the headset is plugged in :</p>
  
  <pre><code>AudioManager speakerOutput = (AudioManager) getSystemService(Context.AUDIO_SERVICE);
  speakerOutput.setMode(AudioManager.MODE_IN_CALL);
  speakerOutput.setSpeakerphoneOn(true);
  </code></pre>
  
  <p>But then when I tried to control my app by the headset's microphone, nothing. So I tried with the smartphone's one and it's obviously working. </p>
  
  <p>It don't seems like others AudioManager.MODEs route audio output only and leave the mic input to the headset. So what can I do now without having to build a new kernel, modify drivers, HAL, …etc ?</p>
  
  <p>Thanks, C.</p>