title: Android MediaRecorder - Stop and Immediately Start Recording
body: <p>I want to be able to record a video, stop, then start again immediately (i.e. no lag). The problem is that between a stop and start, my phone loses up to 1.5 seconds while the MediaRecorder is stopped, set to the right state and restarted.</p>
  
  <p>I posted the basis of my code on StackOverflow <a href="https://stackoverflow.com/a/29850565/852806">here</a>.</p>
  
  <p>An automated stop start of this code produced these key timings:</p>
  
  <ul>
  <li>510 (fractional seconds to stop the recording)</li>
  <li>490 (fs to release the camera)</li>
  <li>710 (fs to start a recording)</li>
  </ul>
  
  <p>I have tried 2 mediarecorders, but end up with illegalstateexceptions and don't think the media recorder can be re-used. </p>
  
  <p>According to the Android <a href="http://developer.android.com/reference/android/media/MediaRecorder.html" rel="nofollow noreferrer">documentation</a>, the mediarecorder object cannot be reused.</p>
  
  <p>Is there a way to start another video recording immediately?</p>