I recently purchased a set of headphones with iPhone controls. I've never had these work on Android before and was expecting to just get audio out, and lo and behold, I have media controls.
The trouble seems to be, I also have Voice Dialing, which is triggering itself anytime the headphones are plugged in. Any app playing music now also pauses and plays randomly.
I don't know exactly what's going on, but I suspect that there are 2-3 different apps all trying to do something with the headset, and it's causing problems. I don't really need it to work, but I can't find any settings dealing with the inline remote anywhere. I've been digging through the system settings and all of my app settings all day and nothing even mentions these behaviors.
I don't care if I have to recompile the kernel myself; I very much want to edit this behavior. Where do I start looking? Is the headset a hardware button? Is there a flag I can check for with an app's code that can detect when a headset with a remote is plugged in to make it do different things?