Skip navigation

Play music with Media Player

Play music with Media Player: Building a Game App with the Android SDK
Play music with Media Player: Building a Game App with the Android SDK

Games frequently play music in the background. For this game, we’ll play a bit of music that I’ve provided in the exercise files folder. There are files - a WAV file that plays a short sound effect, and an MP3 file that plays a longer musical piece. I'll copy these files to my project. Then I'll describe how to use the MediaPlayer class to play music in the background during game play.

  • Overview
  • Transcript
  • View Offline
Resume Transcript Auto-Scroll
Skill Level Intermediate
2h 6m
Duration
23,619
Views
Show More Show Less
Skills covered in this course
Developer Games Mobile Apps Android

Continue Assessment

You started this assessment previously and didn't complete it. You can pick up where you left off, or start over.

Start Your Free Trial Now

Start your free trial now, and begin learning software, business and creative skills—anytime, anywhere—with video instruction from recognized industry experts.

Start Your Free Trial Now