Detect presses to headset buttons on Android?
<p>How can I detect if a buton, on a pair of headphones, was pressed while running an Android app?  Music applications use to this button to stop, play, pause music, etc.</p>

<p>Does a signal get sent to the microphone?  Is it treated as a key press event? </p>
