On Jul 20, 4:22 pm, TreKing <treking...@gmail.com> wrote:
> On Wed, Jul 20, 2011 at 4:15 PM, darrinps <darri...@gmail.com> wrote:
> > Thanks, but I am not seeing how that solves it. Getting access to know
> > if the service is done or not isn't the problem as I just use a public
> > static variable as suggested here:
>
> >http://groups.google.com/group/android-developers/browse_thread/threa...
>
> Did you read Dianne's comment about trying to determine if a Service is
> running this way?

Yes I did. That's what I followed. Simply putting a public variable in
the service to look at BUT how do I efficiently poll to inspect this?
I was hoping for a callback to register with the Service.

>
> > The problem is how to block waiting on that without sucking up CPU.
>
> Progress dialog?

The Service itself already throws one up.

>
> > I don't see any way to register for a callback which was what I was hoping
> > for.
>
> That's pretty much the point of the LocalService example ... your activity
> has a reference to the Service and can do what it wants with it, including
> registering a custom callback that the Service invokes when it's done.

I understand the reference, but I don't see any where in the example
where any custom callback is done, and I don't see anything clear in
the API on how to do that.

>
> -------------------------------------------------------------------------------------------------
> 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 android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to