title: VideoView onResume loses buffered portion of the video
body: <p>I am having an Activity in which there is</p>
  
  <ol>
  <li><p>VideoView
     -- Streams a video from a webserver.</p></li>
  <li><p>Button  --
     Takes the user to the next activity to be shown.  </p></li>
  </ol>
  
  <p>When the application starts, 
     VideoView is made to play the Video from a webserver.</p>
  
  <p>Now assume </p>
  
  <pre><code> Total Video length is 60 Minutes
  
   Current Video progress is 20 Minutes
  
   Current Buffered progress 30 Minutes 
  </code></pre>
  
  <p>Now when I click on the above mentioned Button which takes user to the next activity. </p>
  
  <p>From that Activity if i press the back button, Previous Activity(with VideoView and Button) appears in front of the user. 
  But when resumed all the Buffered Portion of the video is lost and hence the VideoView starts playing the video from the beginning which is really bad.  <strong>&lt;-- Actual Problem</strong></p>
  
  <p>Problem </p>
  
  <p>When Activity is resumed back, the buffered portion of the video is lost and hence starts buffering it again. So how to overcome re-buffering the buffered portion of the Video ? </p>
  
  <p>Even official Youtube android app. has the same problem. </p>
  
  <p><strong>Edit 1 :</strong></p>
  
  <p>I tried the below code in Activity but its not working.</p>
  
  <pre><code>@Override
  protected void onPause() {
      // TODO Auto-generated method stub
      super.onPause();
      videoView.suspend();
  }
  
  @Override
  protected void onResume() {
      // TODO Auto-generated method stub
      super.onResume();
      videoView.resume();
  }
  </code></pre>
  
  <p>Can anyone guide me regarding this problem ?. Or am I missing something to make this work perfectly ?  </p>
  
  <p><strong>Current Workaround</strong></p>
  
  <p>I have saved the current playing position of the video in <code>onPause()</code> method and in <code>onResume()</code> method I have used that position to seek the video to that duration. This works fine. But the video buffering starts from the beginning tho it starts the video from the seek position.</p>
  
  <p>Any help is deeply appreciated.</p>