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/thread/8c4bd731681b8331/bf3ae8ef79cad75d
>

Did you read Dianne's comment about trying to determine if a Service is
running this way?


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

Progress dialog?


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

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