Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

Android Build a Simple Android App (retired 2014) Pretty Little Things Adding Sounds

Kevin Lavi
Kevin Lavi
3,311 Points

Sound not showing up on MediaPlayer.create

I'm following the directions of the teacher and after I add the MediaPlayer.create I have to include a context and a resid. My problem is the CrystalBall mp3 that I placed in the raw folder (which is in the res folder) is not showing up. Bonus points if someone can more clearly explain why we write "this" for the context.

http://imgur.com/9lsyHcw

1 Answer

william parrish
william parrish
13,774 Points

Try right clicking on your raw folder, and selecting refresh. Then if intellisense continues to give you grief, check that you get an error if you just type in the file name yourself (without .mp3) and if so, try deleting and reimporting. I had this issue with some graphics files once, but it was just something simple that i managed to click my way through after refreshing and reimporting.