How can we disable the start of music player in android phone , when headset button is pressed?
<p>In some of the Samsung galaxy mobile, when we press the headset button, the Music player is started. I want to disable this functionality. On pressing the headset button, I want to do another task.</p>

<p>How can I achieve this?</p>

<p>The <code>Intent.ACTION_MEDIA_BUTTON</code> is received only in My application and music player should not receive the inten. So that the music player is not started and I will do what I wanted to do in my application.</p>
