Wednesday, June 22, 2011

[android-developers] Intercept SMS, disable notification sound

It is very straight forward to setup a Broadcast receiver that is
called whenever a SMS is received, so I won't discuss it here.

Depending on the text in a message I'd like to ignore the phones
notification sound for just that sms message being received. The hard
part is the disabling the notification sound for just the one sms
message. I've encountered apps which can do this.

There is apparently a trick using intent priority to completely
intercept the SMS first and abort the broadcast. However this appears
to drop the entire SMS completely.

Any help appreciated.


Stephen Damm

--
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+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

No comments:

Post a Comment