On Tue, Jul 13, 2010 at 2:12 AM, Nick Richardson
<[email protected]>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 <[email protected]> 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
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en

Reply via email to