Android examples for android.media:Audio
stop Recording audio
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 va2 s. co m recorder.reset(); recorder.release(); recorder = null; } return fileName.toString(); } }