video continue from paused state while clicking android home button
<p>i am using video player in my application. its working fine. But i need while android "HOME" button clicking video player in pause state and again i click application it continue from last played state. </p>

<p>here my code:</p>

<pre><code>videoView = (VideoView)findViewById(R.id.videoView);
MediaController mediaController= new MediaController(this);
        mediaController.setAnchorView(videoView);  
        String path1="http://commonsware.com/misc/test2.3gp";
        Uri uri=Uri.parse(path1);
        videoView.setMediaController(mediaController);
        videoView.setVideoURI(uri);

        videoView.requestFocus();
        videoView.start();    
@Override
    protected void onPause() {
        videoView.pause();
        super.onPause();

    }
    @Override
    protected void onResume(){
        videoView.start();
        super.onResume();

    } 
</code></pre>

<p>any one can help me?</p>
