The MediaRecorder class is used for both Audio and Video capture.
setAudioEncoder setAudioSource
setVideoEncoder setVideoSource
before calling prepare()
setOutputFormat setOutputFile
Audio Sources[]
VOICE_CALL VOICE_DOWNLINK VOICE_UPLINK
Output Sources[]
MediaRecorder.OutputFormat.MPEG_4 MediaRecorder.OutputFormat.RAW_AMR MediaRecorder.OutputFormat.THREE_GPP
recorder.prepare();
recorder.start();
recorder.stop();