开发者

How can notifications sounds play from application resources?

I have used the following code: the mp3 is saved in the mobile sdcard.

notif开发者_开发技巧ication.sound =  Uri.parse("file:///sdcard/File/sdcard/introduction_file.mp3");

do you know how a mp3 file can be played as an application recources and not from the sdcard?

thank you


See android guide for playing from raw resource.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜