> But can the activity handle that even when its
> not
> running?

That depends on the definition of "handle that" and "its not running",
along with whether or not your service is local or remote.

> In which method will it handle the answer of the service, or how
> do I
> get the answer?

If you use a callback object, it will be whatever method you decide to
use. Remember: with local services, everything is in the same process and
the same classloader, so you can call whatever you want, so long as you
take care to avoid memory leaks (e.g., keep a singleton service on the
service class as a static, null out that reference when the service ends,
and do not hold onto the reference within  your activity code).

-- 
Mark Murphy (a Commons Guy)
http://commonsware.com
_The Busy Coder's Guide to Android Development_ Version 2.0 Available!



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