Use MediaRecorder to record the sound and use MediaPlayer to playback the recorder.