Hi folks, I have several audio files in the res/raw folder. When I run the following code I was assuming that just the "sound1" file would be played, instead all of the files in the folder get played one after another, not just "sound1".
MediaPlayer mp = MediaPlayer.create(this, R.raw.sound1);
try {
mp.start();
} catch (IllegalArgumentException e) {
e.printStackTrace();
} catch (IllegalStateException e) {
e.printStackTrace();
}
What am I missing? Thanks for any help!