This is how i'm recording audio :-
recorder = new MediaRecorder();
recorder.setAudioSource(MediaRecorder.AudioSource.MIC);
recorder.setOutputFormat(MediaRecorder.OutputFormat.THREE_GPP);
recorder.setAudioEncoder(MediaRecorder.AudioEncoder.AMR_NB);
recorder.setOutputFile(audioFile.getAbsolutePath());
and to start recording :-
recorder.start(); // Recording is now started
and to stop :
recorder.stop(); // Recording is now stopped
But how to pause while recording, also searched in stackoverflow and developer site and i found that there is no api to pause the recording. But there are many apps in google play where pause option is available, so that means some work around has to be done.
One way can be using the same audio file and appending data to it.
But, can anyone help me with some code.... Thanks :)