On Mon, Oct 18, 2010 at 10:20 PM, Suresh Chandra Pal <
[email protected]> wrote:

> I have one more doubt, is it necessary to cancel my notification.
>

If you don't want the user to have to do it, yes.


>  Do you mean by 'automatically canceled yourself', that I need to call
> cancel method on it.
>

Yes.
http://developer.android.com/reference/android/app/NotificationManager.html#cancel%28int%29


> If so what should be place to call it?
>

That's up to you - when do you want to cancel it? If you're trying to hack
the system to just play a sound, maybe right after notify.


> As par my understanding the cancel will cancel my notification. So what are
> side effects if I will not call cancel()?
>

The notification stays in the user's notification area, until they close it
themselves.

-------------------------------------------------------------------------------------------------
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