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 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 ...
Get Android Quick APIs Reference 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.