开发者

android : how can I store an audio file in the application folder

开发者 https://www.devze.com 2023-03-25 23:00 出处:网络
I am using StatusBarNotification in my application. I want to play some particular sound when the notification arrives. 开发者_如何转开发So I planned to store the sound file in the application folder.

I am using StatusBarNotification in my application. I want to play some particular sound when the notification arrives. 开发者_如何转开发So I planned to store the sound file in the application folder. But I am not sure, where to store this .mp3 file. Is it within the res folder? I and also I want to know how to play this file from the application.

Please help me...

Thank you..


You will want to store this in the /res/raw folder. Take a look at this link: http://developer.android.com/guide/topics/media/index.html

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号