Music does not play after clicking back key and returning to activity in Android
<p>I am trying to play Audio using videoView using MediaController. The Audio is playing well, when I click back key the controls returns to previous state. But when I select activity again from launch screen, activity appears but music doesnot play. Can anyone help me in sorting out this issue?
The code is as follows:  </p>

<pre><code>public void onCreate(Bundle savedInstanceState) {  
        super.onCreate(savedInstanceState);
        setContentView(R.layout.video);

        videoView = (VideoView)this.findViewById(R.id.videoView);
      videoView.setVideoPath("http://www.pocketjourney.com/downloads/pj/video/famous.3gp");
        final MediaController mc = new MediaController(this);
        videoView.setMediaController(mc);
        videoView.setVideoURI(Uri.parse("http://www.pocketjourney.com/downloads/pj/tutorials/audio.mp3"));


        videoView.requestFocus();
        videoView.start();
        videoView.setMediaController(new MediaController(this)
        {
            public void hide()
            {
                System.out.println("HIDEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEHELLLOO");
                mc.show();
            }
        });




}


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

<p><br> Thanks in Advance</p>
