On Thu, Feb 24, 2011 at 6:14 AM, cls <[email protected]> wrote:

> I have a notification in my service which I cancel in onDestroy using the
> cancel(id,notification).
>

onDestroy is not guaranteed to be called, so you may end up with an
permanent notification.


> The notification immediately reappears after cancellation. Any clues?
>

Based on what little information you posted, I'm guessing you are calling
notify() right after you call cancel(), thereby reshowing the notification.

-------------------------------------------------------------------------------------------------
TreKing <http://sites.google.com/site/rezmobileapps/treking> - Chicago
transit tracking app for Android-powered devices

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to