I have a bit of a work-around but it is a little cumbersome and requires root. I should warn you that I know nothing about Android and just enough about linux for this to work. Samsung has bound the headset button to trigger the keycode SEND_END, what that does from there is bit hard to find for me to figure out (brings up the call log, ends calls?, nothing else?)
As far as I can tell the stock behavior should have the keycode HEADSETHOOK. See here. So if you rebind this keycode to headset button scancode it works somewhat. I guess Samsung left this keycode in the event caller? (Again I don't really know what I'm talking about). The appropriate file that needs to be changed is: /system/usr/keylayout/sec_jack.kl
A button press still does nothing in the stock music player, but the cubed (3) player does recognize the presses and will play/pause and skip tracks. The button will also answer incoming calls and mute/unmute the mic when a call is in progress (I wasn't able to end a call). Appears to do nothing in Pandora. This is my first android phone so I'm not even sure what "stock" behavior should be in these apps.
As far as I can tell the stock behavior should have the keycode HEADSETHOOK. See here. So if you rebind this keycode to headset button scancode it works somewhat. I guess Samsung left this keycode in the event caller? (Again I don't really know what I'm talking about). The appropriate file that needs to be changed is: /system/usr/keylayout/sec_jack.kl
A button press still does nothing in the stock music player, but the cubed (3) player does recognize the presses and will play/pause and skip tracks. The button will also answer incoming calls and mute/unmute the mic when a call is in progress (I wasn't able to end a call). Appears to do nothing in Pandora. This is my first android phone so I'm not even sure what "stock" behavior should be in these apps.