Chapter    9

Media and Camera

Media support and access to a high-resolution camera are the most exciting features of the Android platform. Both of these features are very extensively used by Android applications. Dealing with media on a mobile device has its own unique challenges, and the Android framework provides a comprehensive application programming interface (API) for multimedia. This chapter provides a brief summary of those APIs and their usage.

Audio Manager

Android provides access to audio-related controls through the service. It can be accessed from the application code by requesting the system service instance for Context.AUDIO_SERVICE from the current context, as shown in Listing 9-1.

Listing 9-1. Getting ...

Get Android Quick APIs Reference now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.