Java tutorial
//package com.java2s; import android.media.MediaRecorder; public class Main { public static void stopRecording(MediaRecorder mRecorder) { if (mRecorder != null) { mRecorder.stop(); mRecorder.release(); } } }