O'Reilly logo

Beginning Android Programming: Develop and Design by Kevin Grant, Chris Haseman

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 8. Movies and Music

Support for media, both audio and visual, will hopefully be an essential part of your next immersive Android application. Both industries are on the forefront of mobile usage, and many modern mobile applications are leveraging this technology to build thoughtful and engaging applications. To this end, I’ll get you started with the basics for Android’s video and music libraries in this chapter. I’ll also point out a few things you’ll need to be aware of as you build a background media playback service: movies, music playback, background service, and what to watch out for.

Movies

Movie playback on an Android device boils down to the VideoView class. In this section, I’ll use a simple example application that will play ...

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