> Sorry to bump, but this must be possible?

"But if the
main activity loses focus (i.e. I go to the home screen) when I return
to the activity it has no knowledge of the service anymore - even
though the service is still running. "

What do you mean by "it has no knowledge of the service anymore"?

"When the activity resumes, how do I find out a) if the service is
running, and if so b) re-bind to it, so that I can then stop it and
collect the data I'm after. "

a). You don't need to.

b). Call bindService() if you want to bind to it, to call methods on its
binder. Call stopService() if you want to stop it.

-- 
Mark Murphy (a Commons Guy)
http://commonsware.com
Android App Developer Books: http://commonsware.com/books.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