Code example for MediaRecorder

Methods: releasereset

0
    } 
	 
     
    private void releaseMediaRecorder(){ 
        if (mMediaRecorder != null) {
            mMediaRecorder.reset();
            mMediaRecorder.release();
            mMediaRecorder = null;
            camera.lock();
        } 
    } 
	 
    private void releaseCamera(){ 
        if (camera != null){
            camera.release();        // release the camera for other applications
            camera = null;
        } 
    } 
     
	public void loadPreferences() { 
		PreferencePacket p = procCmd.loadPreferences();