With respect, it's not that clear the first time you try it! This line
interested me...

"A service can be both started and have connections bound to it. In
such a case, the system will keep the service running as long as
either it is started or there are one or more connections to it with
the Context.BIND_AUTO_CREATE  flag. Once neither of these situations
hold, the service's onDestroy() method is called and the service is
effectively terminated. All cleanup (stopping threads, unregistering
receivers) should be complete upon returning from onDestroy()."

So it seems like the onDestroy() method should be called, unless there
is more than one connections existing. Is it possible that when my
activity is resumed, a new connection object is created, making a
second one hanging onto the service?

On Dec 10, 4:02 pm, Neil <[email protected]> wrote:
> Mark, you're very patient considering it's all explained very well in
> the docs ;)http://developer.android.com/reference/android/app/Service.html

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