Yeah currently notifications are very much owned by the app that created them, and there is no facility for other apps to interact with them. As you say, one could imagine a way for apps to replace handling of notifications, but it's not something we have defined support for at this point.
On Sun, Jul 5, 2009 at 3:42 PM, Mark Murphy <mmur...@commonsware.com> wrote: > > 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! > > > > -- Dianne Hackborn Android framework engineer hack...@android.com Note: please don't send private questions to me, as I don't have time to provide private support, and so won't reply to such e-mails. All such questions should be posted on public forums, where I and others can see and answer them. --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---