You can use the MediaRecorder class to record audio and video and the MediaPlayer class to playback audio and video.
Our tutorial shows you how to use the MediaRecorder class to record audio and the MediaPlayer class to playback audio.