egydeveloper
egydeveloper

Reputation: 585

I cannot add new folder at res directory

I need to create folder at res this folder has sound but i couldn't and i don't whey ?

enter image description here

Upvotes: 1

Views: 2029

Answers (2)

lopez.mikhael
lopez.mikhael

Reputation: 10061

We must create a raw folder and then add your mp3

raw folder

You access to your file that way :

getResources().openRawResource(R.raw.sound);

Upvotes: 2

IanB
IanB

Reputation: 3489

Your mp3 file should be added to res/raw (you may need to create this). Good luck !

Upvotes: 0

Related Questions