Wednesday, July 20, 2011

[android-developers] Bet practice for determining when a Service has done its work.

I have an Activity that starts a service and needs to know when that
Service completes its job before continuing on. The service itself
throws up a spinner BTW.

The way it works now is that the Activity fires up the Service, the
Service throws up the spinner, and before the Service completes its
work, the Activity continues on and doesn't have the data it needs to
have down stream.

What is the recommended approach to blocking in this case?

Thanks!

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

No comments:

Post a Comment