Playing a notification sound

Put your problem here if it does not fit any of the other categories.

Playing a notification sound

Postby joemarshalmathew » Sun Jan 03, 2010 10:01 am

I am new to android development :D . I tried to create an application, everything went smooth. The only problem i encountered was with a notification sound. I tried with Ringtone manager, MediaPlayer, NotificationManager etc nothing worked.
I tried to put an alert sound(alert.mp3) in the "raw" folder under "res" but the resource is not accessible in the "R.raw.alert". i just created a folder "raw" in the res and copied the audio file into it.

Can anyone help me to play a simple alert, i dont need any notification in the status bar or anything.
I just need a beep sound or any default system sound.

Thanks in advance.
Posts: 9
Joined: Sun Jan 03, 2010 6:25 am
Location: Kochi,India


Return to Other Coding-Problems

Who is online

Users browsing this forum: No registered users and 14 guests