title: How to play audio through Bluetooth speaker even when headset is plugged in?
body: <p>I have my phone connected to a Bluetooth speaker and the headphones plugged in. Now I'd like to play audio through the Bluetooth speaker.
  When I set the audio stream to <code>AudioManager.STREAM_MUSIC</code> it just plays over the headphones.</p>
  
  <p>It doesn't matter if it plays on the headphones as well but I need it to play on the Bluetooth speaker.</p>
  
  <p>How is this possible? The app SoundAbout manages to do that so there must be a way.</p>
  
  <p><strong><em>EDIT: When I plug in the headphones and only afterwards connect to the Bluetooth speakers all audio plays through the Bluetooth speakers which I want.</em></strong> But I can't expect the user to find that out and before having to show them a complicated message I'd rather find out a way to make the sound always play through BT speakers when connected to some.</p>
  
  <p>Thanks</p>
  
  <p>(Note this is not the same question as this: <a href="https://stackoverflow.com/questions/31397934/how-to-play-audio-through-speaker-even-when-headset-is-plugged-in">How to Play audio through speaker even when headset is plugged in?</a>
  I want it to play on Bluetooth speakers, not on the integrated speaker of the phone.)</p>