Set Notification Sound from Assets folder

前端 未结 6 680
北海茫月
北海茫月 2021-02-05 05:46

I am attaching the sound files in the assets folder for play sound in the notification but I am not able to play sound from the assets folder.

I have setting page from w

6条回答
  •  难免孤独
    2021-02-05 05:55

    assets are private resources to that app, I think you wont be able to set them as ringtone, you will need a public file which is accessible by the media process to set ringtone. You will have to copy the file to sdcard to set it as ringtone.

提交回复
热议问题