The approach I took was to set the UI handler to the service, then
pass the message via that handler and then UI displays it using Toast.
I don't know if this is the most efficient , but it works.

Dianne Hackborn wrote:
> Yes toasts can be shown by anyone; that is one of their main purposes.
>
> On Fri, Mar 20, 2009 at 9:22 AM, Graeme <[email protected]> wrote:
>
> >
> > Hi
> >
> > I have a background service component which is reacting to changes in
> > network connectivity.
> > I would like to alert the user that a a connectivity change event has
> > occurred by popping
> > up a Toast View on the device screen.
> >
> > Is this possible ? Can it be done even though a Service component does
> > not have a
> > UI associated with it ?
> >
> > Thanks for any pointers
> >
> > Graeme
> >
> > >
> >
>
>
> --
> Dianne Hackborn
> Android framework engineer
> [email protected]
>
> Note: please don't send private questions to me, as I don't have time to
> provide private support.  All such questions should be posted on public
> forums, where I and others can see and answer them.
--~--~---------~--~----~------------~-------~--~----~
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