title: Is there any way to force audio through the speakers when headphones are plugged in?
body: <p>I've tried the recommended </p>
  
  <pre><code>setSpeakerphoneOn(true) 
  </code></pre>
  
  <p>and the unrecommended</p>
  
  <pre><code>AudioSystem.setForceUse(AudioSystem.FOR_MEDIA, AudioSystem.FORCE_SPEAKER);
  </code></pre>
  
  <p>but neither has worked. </p>
  
  <p>I've tried</p>
  
  <pre><code>setWiredHeadsetOn(false)
  </code></pre>
  
  <p>but that doesn't work either, and is deprecated.</p>
  
  <p>Interestingly,</p>
  
  <pre><code>isSpeakerphoneOn()
  </code></pre>
  
  <p>reports true, as does </p>
  
  <pre><code>isWiredHeadsetOn()
  </code></pre>
  
  <p>Additionally, the following permission is set</p>
  
  <pre><code>&lt;uses-permission android:name="android.permission.MODIFY_AUDIO_SETTINGS" /&gt;
  </code></pre>