views:

29

answers:

0

hi. im developing an android app with netbeans. and i'm trying to play sound with

MediaPlayer mp;

mp = MediaPlayer.create(this, R.raw.a);

mp.start();

there is a file named "a.mp3" in the res/raw directory. but for some reason i'm getting file not found on line 2. What could be the problem ?

thanks