I'm trying to play a music sound when my application starts. I used the code:
MediaPlayer mp = new MediaPlayer();
MediaPlayer.create(this, R.raw.counting1to5song);
mp.start();
and the song is in res/raw folder. But when I install the application in my phone and then open, the app crashes!!!
Anyone can give me any help to get this sound properly function?