I have include the Notification with sound. I have tried both as Default and load particular mp3 from sd card. Now my question i include the Raw data in the Eclipse i.e. in the res->raw->sound.ogg suppose i want to use this sound for my notification then how can i use it? Please help me...
When you create notification there is Notification.sound field. For filling it with raw resource use Uri:
Uri.parse("android.resource://your.package.name/" + R.raw.sound);
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With