The Sound Recorder
The Android platform ships with a multitude of APIs, including one for recording audio and video. In this chapter you learn how to use the MediaRecorder class to sample sound levels. This is the same class you used for making videos in Chapter 43, “Making Videos.”
Support for multimedia is rock solid in Android. There are classes that you can use to play audio and video as well as record them. In the SoundMeter project discussed in this chapter, you will use the MediaRecorder class to sample sound or noise levels.MediaRecorder is used to record audio and video. The output can be written to a file and the input source can be easily selected. It is relatively easy to use too. You start ...