How to start video from where it stopped

android, video

Solution

To get the current progress(check this in onPause):

long progress = mVideoView.getCurrentPosition(); 

To resume (in onResume):

mVideoView.seekTo(progress);

Problem

I am using VideoView for playing video. If I go out of the application, while returning to the application ie in onResume() it should play the video from where it was stopped.

Original source