12. Multimedia

Creating an application that can display data and take user input is fine; however, applications that contain video and audio can do much more than simply provide something to look at or listen to. By adding multimedia to your application, you can draw a user in and provide another dimension for user feedback and manipulation. In this chapter, you learn how to work with audio and video within your application.

Working with Audio

Audio is an almost ever-present obligatory addition to many of the applications and system functionalities of your Android device. Most notifications have an audio cue attached to them, as do messaging and contact applications.

Within the Android system, sound playback has been implemented with a variety ...

Get Android™ Development Patterns: Best Practices for Professional Developers now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.