Hi, I just open my eclipse workplace, click and open "res" folder, create a folder name "raw" there. Then you put the test_cbr.mp3 file there. After that, u just have to refresh the project. "res" folder is the place to store all resource file. :)
On Dec 2, 4:06 am, bradu33 <[email protected]> wrote: > Hi, > > I am having the same problem. I realize that you should not include > the file extension. I have tried creating the Raw folder in the file > system, and placing my file there. I have also tried creating a new > flat file in to be placed in the Raw folder within Eclipse. Both give > the same error: > > "R.raw cannot be resolved". The problem is not with the file name. > The class R.Raw is not being created in R.java like the other classes > (drawable, layout, string). > > Did you ever find a solution? > > Thanks. > > On Nov 7, 6:02 am,cwj<[email protected]> wrote: > > > Hello everyone, i am still a beginner in developing android > > application. > > when i try to run the this sample code in eclipse, it came out some > > error at this part > > mMediaPlayer = MediaPlayer.create(this,R.raw.test_cbr); > > it says thatR.rawcannotberesolved. > > > And by the way, how do i store the music file in the SD card? Is this > > step necessary even if i run it on the emulator? > > > Anyone, help! thanks -- You received this message because you are subscribed to the Google Groups "Android Beginners" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en

