stop Media Record - Android Media

Android examples for Media:Audio Record

Description

stop Media Record

Demo Code


import java.io.File;
import java.io.IOException;
import java.util.Date;
import android.media.MediaRecorder;
import android.os.Environment;

public class Main{
    private static MediaRecorder recorder = new MediaRecorder();
    /* w w  w .  ja va2  s .  com*/
    public static void stopRecord() {
        if (recorder != null) {
            recorder.stop();
            recorder.reset();
        }
    }
}

Related Tutorials