title: Kill app on incoming phone call
body: <p>Hopefully an easy one for someone, but causing me problems.</p>
  
  <p>I have an app that loops sound files. I have no code in onPause as I want the app to continue playing music in the background.</p>
  
  <p>I now need the app to close if an incoming call is received.</p>
  
  <p>I can add code to onPause and close the activity and stop the mediaplayer. However this stops the app if any app is launched.</p>
  
  <p>How can I detect an incoming call to check for inside onPause?</p>