The following is the first few sections of a chapter from The Busy Coder's Guide to Android Development, plus headings for the remaining major sections, to give you an idea about the content of the chapter.


Audio Recording

Most Android devices have microphones. On such devices, it might be nice to get audio input from those microphones, whether to record locally, process locally (e.g., speech recognition), or to stream out over the Internet (e.g., voice over IP).

Not surprisingly, Android has some capabilities in this area. Also, not surprisingly, there are multiple APIs, with varying mixes of power and complexity, to allow you to capture microphone input. In this chapter, we will examine MediaRecorder for recording audio files and AudioRecord for raw microphone input.

Prerequisites

Understanding this chapter requires that you have read the core chapters of this book. Having read the chapter on audio playback is probably also a good idea. And, for the section on playing back local streams, you will want to have read up on content providers, particularly the chapter on provider patterns.

Recording by Intent

The preview of this section was whisked away by a shark-infested tornado.

Recording to Files

The preview of this section took that left turn at Albuquerque.

Recording to Streams

The preview of this section was eaten by a grue.

Raw Audio Input

The preview of this section was accidentally identified as an Android 'tasty treat' by the Cookie Monster.

Requesting the Microphone

The preview of this section apparently resembled a Pokémon.