Seer wrote:
> My understanding of intents is that the whole point of them is so that
> you can have multiple applications providing similar or the same
> functionality and that those applications become interchangable via
> intents.

That is generally correct.

> Now when a new sms comes in there is a notification in the
> notification bar and that notification will allow any application
> implementing the correct intent ("action view and data of sms") to be
> triggered from the notification to display the sms.

That is true, as far as it goes. However, as near as I can tell from the
Android source code, that notification was raised by the built-in
messaging application:

http://tinyurl.com/o4t4cl

Since the built-in messaging application raised the notification, it has
to clear it; no other application context can do so, AFAIK.

What you may want to do is find a way, if there is one, to arrange to
consume the SMS message yourself and put up your own notification,
rather than let the built-in messaging application handle it.

> It makes no sense to allow developers to offer alternative
> applications via intents with the notifications and then have the
> notification never go away.

Intents are used in more places than notifications. The notion of having
alternative applications responding to the same Intent would appear to
be aimed more at things like startActivity() than notifications.

That being said, I can imagine there being some way to enhance Android
to allow applications who handle the Intent sent from a Notification to
be able to cancel that same Notification.

-- 
Mark Murphy (a Commons Guy)
http://commonsware.com | http://twitter.com/commonsguy

_Android Programming Tutorials_ Version 1.0 Available!

--~--~---------~--~----~------------~-------~--~----~
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