[android-developers] Re: How to remove sms notifications in status bar
I have the same problem problem of you Muhammad. I manage to detect SMS receive using a BroadcastReceiver and then delete the specified SMS in inbox. However, status bar notification always remains. I think it is not possible to remove this notification because it's sent by the Messaging application. We can avoid SMS receive notification by unchecking the "Notifications" checkbox in the Messaging application settings. However, it's not a good solution because all user won't unckeck it. I would be surprised if we can remove status bar notification of an other application because it could be used by a malware. What do you think ? Did you found a solution to this issue ? -- 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
[android-developers] Re: How to remove sms notifications in status bar
here you go http://stackoverflow.com/questions/419184/how-to-delete-sms-from-inbox-in-android-programmatically this link provide great detail how to retrieve messages form in box and delete them . regards MB On Nov 14, 8:33 am, Sean Liao wrote: > You guys are ahead of me, I don't even know how to delete the sms message > from inbox. Can you share some pointer? > > On Tue, Nov 10, 2009 at 2:17 PM, Muhammad Bilal wrote: > > hi, > > > its been a while since i am doing development on android sdk , one of > > the astonishing i come across that there is np support in the API to > > remove any notification in the status bar , i am working on an > > application which looks for every SMS coming and on some specific sms > > deletes them from the inbox till now its working fine , but the > > notification bar still showing that u got a new message despite the > > fact that u have deleted it form sms database , couls somebody suggest > > some solution how i can accomplish this , thanks > > > regards > > MB > > > -- > > 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 -- 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
Re: [android-developers] Re: How to remove sms notifications in status bar
Hi Bilal, I am also facing same issue. In my code i m not able to delete the last message for which the notification has come. I am only able to delete the previous message from the provider database. Can you please share the code with me how you did that ? Thanks and Regards, Saj On Thu, Nov 12, 2009 at 4:30 AM, Muhammad Bilal wrote: > well in Cancel you need to specify the id of the alert , but as i > haven't created that alert as it was generated by android framework > itself on the receiving the new sms, i did delete that sms from sms > database and when u open messages you wont see it there but status bar > still shows new sms message and when user clicks on it there wont be > any thread cuz i have already delete that thread from database , could > some person of greater knowledge can help me over here , thnaks > > On Nov 11, 2:00 pm, neil wrote: > > Hi Bilal, > > You can use the NotificationManager cancel method. > > > > On Nov 11, 6:17 am, Muhammad Bilal wrote: > > > > > > > > > hi, > > > > > its been a while since i am doing development on android sdk , one of > > > the astonishing i come across that there is np support in the API to > > >removeany notification in thestatusbar, i am working on an > > > application which looks for everySMScoming and on some specificsms > > > deletes them from the inbox till now its working fine , but the > > > notificationbarstill showing that u got a new message despite the > > > fact that u have deleted it formsmsdatabase , couls somebody suggest > > > some solution how i can accomplish this , thanks > > > > > regards > > > MB > > -- > 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 > -- 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
[android-developers] Re: How to remove sms notifications in status bar
well in Cancel you need to specify the id of the alert , but as i haven't created that alert as it was generated by android framework itself on the receiving the new sms, i did delete that sms from sms database and when u open messages you wont see it there but status bar still shows new sms message and when user clicks on it there wont be any thread cuz i have already delete that thread from database , could some person of greater knowledge can help me over here , thnaks On Nov 11, 2:00 pm, neil wrote: > Hi Bilal, > You can use the NotificationManager cancel method. > > On Nov 11, 6:17 am, Muhammad Bilal wrote: > > > > > hi, > > > its been a while since i am doing development on android sdk , one of > > the astonishing i come across that there is np support in the API to > >removeany notification in thestatusbar, i am working on an > > application which looks for everySMScoming and on some specificsms > > deletes them from the inbox till now its working fine , but the > > notificationbarstill showing that u got a new message despite the > > fact that u have deleted it formsmsdatabase , couls somebody suggest > > some solution how i can accomplish this , thanks > > > regards > > MB -- 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
[android-developers] Re: How to remove sms notifications in status bar
Hi Bilal, You can use the NotificationManager cancel method. On Nov 11, 6:17 am, Muhammad Bilal wrote: > hi, > > its been a while since i am doing development on android sdk , one of > the astonishing i come across that there is np support in the API to > remove any notification in the status bar , i am working on an > application which looks for every SMS coming and on some specific sms > deletes them from the inbox till now its working fine , but the > notification bar still showing that u got a new message despite the > fact that u have deleted it form sms database , couls somebody suggest > some solution how i can accomplish this , thanks > > regards > MB -- 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