Sorry, if you want to have control over the notification, I think you will need to implement it yourself. I'm not an expert on the telephony APIs, but I don't know of anywhere we have something that allows one application to dismiss a notification owned by another.
On Fri, Jul 3, 2009 at 10:56 PM, Seer <gilligan.ch...@gmail.com> wrote: > > Then maybe you can help me as all i want to do is something very > simple but i can't find a way to do so apart from what i am talking > about above. > > I have an application reading and responding to sms. It is an > application that is an option when you click onthe standard sms > notification that is built into the phone. The issue is while this > trigers my application correctly and my application displays the sms > and marks it as read the notification on the notification bar never > goes away. To make the notification go away the use has to open the > built in sms client and the notification goes away instantly. All i > want to do is triger the sms notification to update and to go away if > there are no more un read sms. Currently the only way i have found to > do this is the end the broadcast i was talking about which get shte > builtin sms application to check and update its notifications. > > I don't want to have to build an notification system and get users to > disable built in notifications etc. firstly the built in one does > exactly what i want and second it is complicated to get users to turn > off notifications as they normally just complain thye get 2 > notifications. I am not implementing the sms broadcast receiver just > the Action.View for sms and mms. > > Does that make sense? Do you understand what i am trying to do? Is > there a better way to get the notifications to update? > > Chris > > > On Jul 4, 2:04 pm, Dianne Hackborn <hack...@android.com> wrote: > > Um, don't do this. Whatever you are doing this for, you can be sure it > will > > break in the future. > > > > > > > > On Fri, Jul 3, 2009 at 8:55 PM, Seer <gilligan.ch...@gmail.com> wrote: > > > > > Guys, > > > I am trying to get the intent "android.intent.action.BOOT_COMPLETED" > > > sent only to the receiver > > > "com.android.mms.transaction.MmsSystemEventReceiver" as this triggers > > > the sms notification to be updated and removed if there is no longer > > > any unread sms's. The issue i have is i need to make sure the > > > broadcast is only sent to the class above. If it goes to other > > > receivers the phone could end up in an unknown state or something > > > strange. > > > > > The code below does not seem to work. > > > > > Intent intent = new Intent(); > > > intent.setAction("android.intent.action.BOOT_COMPLETED"); > > > intent.setClassName("com.android.mms", > > > ".transaction.MmsSystemEventReceiver"); > > > activity.sendBroadcast(intent); > > > > > This code does work but since it goes to all receivers i have noticed > > > some errors starting to show up in logs etc. > > > Intent intent = new Intent(); > > > intent.setAction("android.intent.action.BOOT_COMPLETED"); > > > activity.sendBroadcast(intent); > > > > > Chris > > > > -- > > 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. > > > -- 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 -~----------~----~----~----~------~----~------~--~---