You should store your mp3 in res/raw and a quick and easy way to
reference it would be

notification.sound = Uri.parse("android.resource://
com.yourpackagename.appname/" +R.raw.your_sound_file);


On Jan 22, 3:01 pm, elpix1 <elp...@gmail.com> wrote:
> Hi,
>
> Is it possible to play a notification sound from a sound file
> inside the application package ?
>
> Where should this file be stored in the apk  (/res/raw or /assets)
> and what should be the URI to pass to the notification ?
>
> notification.sound = Uri.parse(... ? ...);
>
> Best regards.

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to