Hey, I'm slightly new to android/java. I'm making a soundboard. I have the layout and everything completely done. Now I'm trying to get the actions down. Here is what I'm trying to use to make a button make a certain .mp3 play. tom.mp3 is a test file.
MediaPlayer Speech = MediaPlayer.create(this, R.raw.tom);
After it worked once, I replaced the test file tom.mp3 with the real file I wanted to use.
MediaPlayer Speech = MediaPlayer.create(this, R.raw.tomfinal);
I put into emulator and clicked the button "Tom" and it still plays the tom.mp3 sound file, not the tomfinal.mp3 file. Someone please help, please show me how a clean and working sound mediaplayer code.