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 trialKevin Lavi
3,311 PointsSound 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.
1 Answer
william parrish
13,774 PointsTry 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.