Java tutorial
//package com.java2s; import android.media.MediaRecorder; public class Main { /** * task: pause recording * @param mediaRecorder object to operator */ public static void pauseRecording(MediaRecorder mediaRecorder) { mediaRecorder.stop(); // stop recording mediaRecorder.release(); // release the resource } }