Thanks for pointing out that flag... i don't know how i could have missed it, as i had read over that document several times trying to figure this one out.
On Tue, Jul 13, 2010 at 8:36 AM, TreKing <treking...@gmail.com> wrote: > On Tue, Jul 13, 2010 at 2:12 AM, Nick Richardson < > richardson.n...@gmail.com> wrote: > >> Hi everyone, >> > > Hi there. > > >> I have (what i hope is) a simple question. >> > > Yup, pretty simple. > > >> I would like to remove my status bar notification when a user clicks on >> without my app being brought into the foreground in the process. >> > > Have you tried looking at the documentation for Notification? Because right > there is this: > > http://developer.android.com/reference/android/app/Notification.html#FLAG_AUTO_CANCEL > > Done. > > >> I have tried creating a new class/intent that clears my notification then >> calls finish() in the onStart and onCreate methods. It clears the >> notification, but my app is still opened as a result of the click on the >> notification. >> > > Holy crap, that's completely unnecessary. > > >> Any help would be appreciated. >> > > Sure thing. > > >> Thanks! >> > > Welcomed! > > On Tue, Jul 13, 2010 at 2:29 AM, Kostya Vasilyev <kmans...@gmail.com> > wrote: > > It can be set up to trigger a BroadcastReceiver or even a Service - which >> could clear the notification without being visible to the user. >> > > This is just as bad as calling an Activitiy to clear the notification and > then close itself. > > > ------------------------------------------------------------------------------------------------- > TreKing - Chicago transit tracking app for Android-powered devices > http://sites.google.com/site/rezmobileapps/treking > > -- > You received this message because you are subscribed to the Google > Groups "Android Beginners" group. > > NEW! Try asking and tagging your question on Stack Overflow at > http://stackoverflow.com/questions/tagged/android > > To unsubscribe from this group, send email to > android-beginners+unsubscr...@googlegroups.com<android-beginners%2bunsubscr...@googlegroups.com> > For more options, visit this group at > http://groups.google.com/group/android-beginners?hl=en > -- //Nick Richardson //richardson.n...@gmail.com -- You received this message because you are subscribed to the Google Groups "Android Beginners" group. NEW! Try asking and tagging your question on Stack Overflow at http://stackoverflow.com/questions/tagged/android To unsubscribe from this group, send email to android-beginners+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en