How to Pause Background Music When Home Button Pressed
<p>I need to know this so I can remove the exit option.</p>

<pre><code> public void onWindowFocusChanged(boolean hasFocus) { 
if (hasFocus) { 
 mediaPlayer = MediaPlayer.create(this, R.raw.theme); 
 mediaPlayer.start();
    mediaPlayer.setLooping(true);

}}
</code></pre>
