I am developing an audio recording application using MediaRecorder class.
I have the following requirement: 

1.When a pause button is pressed then pause recording. 

2.When a resume button is pressed then resume recording where it paused. 
I try this [link](https://stackoverflow.com/questions/5743165/pause-and-resume-audio-recording-in-android)

But I am unable to implement the functionality.

Any help/suggestion would be greatly appreciated.