Skip navigation

Play sounds with SoundPool

Play sounds with SoundPool: Android Development Tips Weekly
Play sounds with SoundPool: Android Development Tips Weekly

To play longer audio files, you can use the MediaPlayer component. But with shorter sounds where the file is less than 1 megabyte in size, you can play the file with SoundPool. This class can load a file directly from assets, so you don’t have to take the step of copying it to a new location. And you can cache the file in memory as an activity starts up so you won’t have any latency the first time you play it. This make SoundPool ideal for game sounds and other effects that have to be played multiple times.

Resume Transcript Auto-Scroll
Skill Level Intermediate
3h 4m
Duration
12,439
Views
Show More Show Less

Q: Why can't I earn a Certificate of Completion for this course?

A: We publish a new tutorial or tutorials for this course on a regular basis. We are unable to offer a Certificate of Completion because it is an ever-evolving course that is not designed to be completed. Check back often for new movies.

Skills covered in this course
Developer 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