5

My android (Galaxy sII, CM9) has this thing where if I connect/disconnect headphones (either audio jack or bluetooth) it responds to it. (Like turns the song on or off.) I use Poweramp for music.

The idea is great but the execution is horrible. It tends to just turn on random audio files in my phone that I don't want to hear, or just switch songs arbitrarily, lose the point in a podcast that I'm at so I have to reopen the file and find the point again, etc.

How do I cancel any and all Android responses to connecting or disconnecting headphones? I don't want my phone to do anything when I connect or disconnect headphones.

3
+100

The following application: SoundAbout allows you to disable the headphone plug/unplug event detection in the settings: Select Wired Headset behaviour and remove the tick from the Wired Headset detection (ticked by default)

Wired_Head_Set_Behaviour Headphone_Plug_Detection

From my understanding what it basically does is that it registers a broadcast receiver for the following broadcast with the Intent: Intent.ACTION_HEADSET_PLUG and the receiver cancels the event using the abortBroadcast method.

As previously mentioned by @NightCrawler most media player on Android like PowerAmp, Play Music, VLC etc all have an extra setting to specify their behaviour on a headphone plug/unplug event (Ignore/comply)

1

You can make this happen by going in poweramp settings->Headset/Bluetooth an uncheck Pause On Headset Disconnect and Resume on wired Headset and that should be it

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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