title: How to close the default media player?
body: <p>I have started the default media player using the following code:</p>
  
  <pre><code>Intent intent = new Intent();
  intent.setAction(android.content.Intent.ACTION_VIEW);
  File file = new File(Environment.getExternalStorageDirectory()+("/background.mp3"));
  intent.setDataAndType(Uri.fromFile(file), "audio/*");
  startActivity(intent); 
  </code></pre>
  
  <p>But, when the file is played completely, I want to exit the media player.
  How do we close the default media player which is started by 'intent'?
  I have tried using the "<code>startActivityForResult()</code>"... But i don't know where to set the "<code>result</code>"</p>