Knute Snortum wrote:The problem is that the variable resource is not being set, probably because "mix.mp3" is not being found.
Knute Snortum wrote:Try putting a slash in front of media file name:
bob john wrote:Still, nothing happens.
Does
nothing happens mean that the you are still seeing the
NullPointerException, or does that mean no sound was played?
Did you check to see if resource was non-null?