title: How to handle a call in android media player?
body: <blockquote>
    <p><strong>Possible Duplicate:</strong><br>
    <a href="https://stackoverflow.com/questions/6673368/android-2-1-pause-for-incoming-outgoing-call-resume-when-done">Android 2.1+ Pause for incoming/outgoing call, resume when done</a>  </p>
  </blockquote>
  
  
  
  <p>I have created a mediaplayer in android and everything works fine except that the player keeps on playing when i receive a call. To <strong>handle a call</strong> i think we should use <strong>broadcast receiver</strong> and listen to <strong>phone state</strong>. But being a beginner i couldnt figure out <strong>how to implement it?</strong>.Please help</p>
  
  <p>thanks</p>