title: How to play any sound/alarm through built-in speaker while the headset is plugged in Samsung pocket
body: <p>I want to play a notification tone when an event happended while
  the headset is plugged in </p>
  
  <p>The following approaches does not work on my Samsung pocket device
  which has Android 4.0.4</p>
  
  <p><a href="https://stackoverflow.com/questions/12036221/how-to-turn-speaker-on-off-programatically-in-android-4-0?lq=1">how to turn speaker on/off programatically in android 4.0</a></p>
  
  <p><a href="https://stackoverflow.com/questions/6834816/is-there-any-way-to-force-audio-through-the-speakers-when-headphones-are-plugged">Is there any way to force audio through the speakers when headphones are plugged in?</a></p>
  
  <p>My device has an FM radio and that app has the feature of turning the sound to the loud speaker.
  Something like this would be helpful.
  Any notification sound would be find. I think it should be there a different implementation.</p>