O'Reilly logo

Android Quick APIs Reference by Onur Cinar

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    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 ...

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