So I've been trying some stuff with the MediaPlayer, and it works if I do this:
mediaPlayer = MediaPlayer.create(this, R.raw.over);
However, obviously this only allows me to launch that one file. So, if I try something like this:
Uri myUri = Uri.parse("R.raw.over");
mediaPlayer = MediaPlayer.create(this, myUri);
then the mediaPlayer doesn't get created. Any method call
mediaPlayer.start()
throws a NullPointerException.
My idea is that, if I get this to work, then eventually I can playback a file from an ArayList containing URIs.