On Tue, Nov 15, 2011 at 7:21 AM, Tomasz Gawel <[email protected]> wrote:
> if service is both bound and started then:
>
> 1) if last client unbinds but service has not been explicitly stopped
> it is still running?

Yes.

> 2) if service calls stopSelf() but thera still bound clients - is it
> still running or it stops and serviceConnection's
> onServiceDisconnected is called?

I am not certain. I would hope that it would still be running until
the last client unbinds. I have not tried this scenario. I view
combining binding and starting with suspicion -- I would rather you do
it all using one or the other.

> 3) if it started so the activity can use IBinder object after it has
> unbound from the service?

I would not trust this at all.

-- 
Mark Murphy (a Commons Guy)
http://commonsware.com | http://github.com/commonsguy
http://commonsware.com/blog | http://twitter.com/commonsguy

Android 3.2 Programming Books: http://commonsware.com/books

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