Code example for MediaRecorder

Methods: releasereset

0
 
	 
	private void shutdown() { 
		// Release MediaRecorder and especially the Camera as it's a shared 
		// object that can be used by other applications 
		mMediaRecorder.reset();
		mMediaRecorder.release();
		mCamera.release();
		 
		// once the objects have been released they can't be reused 
		mMediaRecorder = null;
		mCamera = null;
	} 
}