Is there any folder like res/drawable for mp3 or generally audio files? If yes, what is it and how can I get access to it from the app?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
The best place to put such
.mp3or any other files would be in theassetsfolder.These files once stored will become a part of your android app itself and can be read easily. This tutorial describes it well.
Alternatively you can also store it in the
rawfolder and read it directly by specifying the path as the raw folder.this can be played as: