title: Respond to Headphone events when using MediaPlayer
body: <p>I'm using the built in MediaPlayer class in Android 2.1 to play audio &amp; video files. However when I plug my headphones in and press the play pause button on them it fires up the built in music player which then plays as well as my app.</p>
  
  <p>Is there a way to either register as being the app that wants those events so that people can control the playback of my app with their headphone controls? Alternatively is there some other way to get around this?</p>