O'Reilly logo

Creating Android Applications: Develop and Design by 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

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 ripe for reinvention, and the next media format revolution almost certainly will involve mobile devices. 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 through every video saved on a phone’s SD card. Here ...

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