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.
Android provides access to audio-related controls through the android.media.AudioManager1 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 ...