User User - 1 year ago 86
Android Question

error in playing a sound in alarm in android application

I am developing an android application in which I have to play an alarm and set the reminder.

Answer Source

The Android AlarmManager doesn't actually ring an audible alarm. If you schedule an alarm the alarm manager will notify your app at the set alarm time by starting the PendingIntent you've provided (in your case the AlarmService). It doesn't do anything more. If you want sound, your AlarmService should play that when the service is started. You can use the android mediaplayer for this.

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download