Thanks
In my sample it does not post notification when i call it

On Nov 18, 1:24 pm, Mark Murphy <[email protected]> wrote:
> Andrei wrote:
> > it has Notification as arg
>
> Yes.
>
> > what is it for
>
> startForeground() is used to give preferential treatment to a service
> that is doing something actively on behalf of the user. The Notification
> is required to ensure that the user "sees" your service. It would be a
> Really Good Thing if your Notification would give the user a quick path
> to stop your service, or at least return it to normal background status.
>
> > when is it shown
>
> The documentation is fuzzy on this point, but I believe
> startForeground() will display the Notification at the time you call
> that method. Conversely, when you call stopNotification(), the
> Notification is canceled.
>
> --
> Mark Murphy (a Commons 
> Guy)http://commonsware.com|http://twitter.com/commonsguy
>
> Android Consulting/App Development:http://commonsware.com/consulting

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