开发者

How can notifications sounds play from application resources?

开发者 https://www.devze.com 2023-03-17 06:34 出处:网络
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\");

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

精彩评论

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