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

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