Back Key code not working
<p>Hey I have the following code within my application, however when I use the back button to close my music activity or the main menu it does not seem to work as the music still plays even when the back button has been pressed to exit the app.  However it does work for my film activity/film clips could anyone explain what may be the problem?</p>

<p>I do not get any errors:</p>

<pre><code>@Override
public boolean onKeyDown(int keyCode, KeyEvent event)
{
    if ((keyCode == KeyEvent.KEYCODE_BACK))
    {
        this.finish();
    }
    return super.onKeyDown(keyCode, event);
}
</code></pre>
