Android Enthusiasts Stack Exchange is a question and answer site for enthusiasts and power users of the Android operating system. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm kind of new in Android and I realized that all the sounds are going out through the speaker regardless if the headphones are connected. If they are the sound also goes out through the headphones, but I'd also like to avoid the speaker when headphones connected.

Is that possible?

Few more information that may help:

  • My phone is a Samsung Galaxy i5510
  • Its Android 2.2 Froyo
  • I've installed Tasker, maybe there is some way to make a profile to achieve what I want.

Thanks, Diego


As it wasn't to clear I'll clarify for each sound (if i forget any please let me know):

  • Phone calls: Speaker and headphones.
  • Notifications: Speaker and headphones.
  • Games and almost every app: Only headphones. (I wrote "almost every app" because, for example, Skype or Camera sounds in both speaker and headphones).
  • Keyboard and "touch clicks": Headphones.

Summarizing the problem are: phone calls, notifications and some "random" apps.

share|improve this question
What sounds are still going through the speaker? Music, ring tones, notifications, keyboard click, games, something else? – GAThrawn Jul 5 '11 at 9:10
I've updated my question. – Diego Jul 6 '11 at 10:55
That's weird. When my headphones are in nothing comes out through the loudspeaker. – Al E. Dec 1 '11 at 2:59
up vote 6 down vote accepted

Currently you can't disable notifications via speakers while still having them via headphones. There's an open issue for that.

You also can use Llama or Tasker to switch profiles when you plug your headphones.

share|improve this answer
I'm using Tasker and PhoneWeaver. But still, would like to hear notifications through speakers, instead of silence the phone. – Diego Nov 29 '11 at 13:44

I wrote an app named SoundAbout. It has a feature to have the sound go though your media output selection AND the speaker. It also allows you to NOT have the notification audio go through the speaker.

share|improve this answer
Wonderful! Still the only usable solution in 2015 (without a need for custom ROMs); thank you, thank you. – Piskvor Dec 9 '15 at 13:33

I saw you had another question about Cyanogenmod, and thought I'd point out that it has the option "Always play on speaker" for notifications, ringtones and alarms (in Settings -> CyanogenMod Settings -> Sound). So as soon as it's stable (if it's developed further) it can solve most of your problems.

share|improve this answer
Nice, so if one disabled this options, the whole alarm stream will only be audible within the headphones if they are connected? – Flow Oct 12 '11 at 14:34
@Flow Yep, exactly. – onik Oct 12 '11 at 14:45
@onik, thanks for the answer. I'll keep this in mind if sometime I install CyanogenMod, but right now there is no official release for my phone and I'm a little afraid of the issues of the unofficial version. – Diego Oct 12 '11 at 16:17

I am afraid, but this doesn't seem possible. There once was an method called setRouting() in the AudioManager API, but it is nowadays a deprecated method which simply does nothing. I am even not sure if the method would be capable of routing all audio streams only to the (wired) headset.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.