I'm writing a small application to silence alarms when the phone's
ringer mode is set to vibrate or silent. Some phones have an option in
the Clock app to enable or disable alarms when the phone is set to
silent, but my Samsung Epic 4G Touch does not.

I've tried using the AudioManager class to mute STREAM_ALARM when the
ringer mode is changed, but it doesn't actually mute my alarms. I used
both

setStreamMute(int streamType, boolean state)
setStreamVolume(int streamType, int index, int flags)

and neither did the job. I'm wondering if someone can point me in the
correct direction for muting alarms (preferably still allowing them to
vibrate if they are set to). Can I maybe access the 'alarm in silent
mode' setting that (I think) is built into Android, even if Samsung
has hidden it?

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

Reply via email to