Android examples for Media:Audio Record
stop Audio Recording
//package com.java2s; import android.media.MediaRecorder; public class Main { private static MediaRecorder recorder = null; private static String fileName; public static String stopRecording() { if (null != recorder) { recorder.stop();/*from w w w . j a va 2 s . c o m*/ recorder.reset(); recorder.release(); recorder = null; } return fileName.toString(); } }