senthil
senthil

Reputation: 47

Notification in Android with Sound?

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...

Upvotes: 3

Views: 440

Answers (1)

Jin35
Jin35

Reputation: 8612

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);

Upvotes: 5

Related Questions