O'Reilly logo

Pro Android 3 by Sayed Y. Hashimi, Dave MacLean, Satya Komatineni

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Chapter 19. Understanding the Media Frameworks

Now we are going to explore a very interesting part of the Android SDK: the media frameworks. We will show you how to play and record audio and video, from a variety of sources. We'll also cover how to take photos with the camera. Any discussion of media would be incomplete without explaining secure digital (SD) cards and how to work with them, since you'll use SD cards often to read and write media files.

Using the Media APIs

Android supports playing audio and video content under the android.media package. In this chapter, we are going to explore the media APIs from this package.

At the heart of the android.media package is the android.media.MediaPlayer class. The MediaPlayer class is responsible for ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required