stop Audio Recording - Android Media

Android examples for Media:Audio Record

Description

stop Audio Recording

Demo Code


//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();
    }
}

Related Tutorials