Hi Everyone
I want to play an audio file in my application. So i created a folder named "raw" in the res directory of my project and i put the audio file in it. Then i created an activity and in its onCreate method i wrote this:
mp = MediaPlayer.create(PlayAuidioActivity.this, R.raw.EyRabbe);
mp.start();
(mp is my MediaPlayer)
But it has an error. it says that : "raw cannot be resolved or is not a field."
Can someone please tell me what is wrong with this and what should I do to solve it?
Thanks in advance
I want to play an audio file in my application. So i created a folder named "raw" in the res directory of my project and i put the audio file in it. Then i created an activity and in its onCreate method i wrote this:
mp = MediaPlayer.create(PlayAuidioActivity.this, R.raw.EyRabbe);
mp.start();
(mp is my MediaPlayer)
But it has an error. it says that : "raw cannot be resolved or is not a field."
Can someone please tell me what is wrong with this and what should I do to solve it?
Thanks in advance
