Headphone music controls not working correctly I recently purchased a set of earphones (HTC RC E160) with music controls (next, play/pause, previous buttons). 

Strangely, they do not appear to work on my Samsung Galaxy Ace. The play/pause button works properly, but the 'next' button does the same thing as the play/pause button and the 'previous' button does nothing at all.

I've tried making a testing Android app which tries to capture the button presses and obtain information about them. The previous button just goes completely undetected, but the next and play/pause buttons both display identical information.

Does anyone have some insight into what is going on? I'm unable to tell if my earphones are faulty, or if there is a compatibility issue.

EDIT - just tried on a Samsung Galaxy Tab, all three buttons work, except the next and previous buttons alter volume instead. Confused.
The solution lies in your first sentence. You're using an HTC headphone.
Music controls are not standardized so every manufacturer implements them differently. As if this wouldn't be enough, different models have different implementations too. The only headphone that's guaranteed to work is the one that came with your device. 

Apple on the other hand has a certification program to make sure that 3rd party accessories will work with iDevices.