The original bind/unbind service can be called by client using bindService()
/unbindService()
.
My question is how to unbind service in service side, not called unbindService()
by client, probably I should call it unbindClient
.
I think the service should know which clients are bound to it, so is there any way to tell the service to unbind a specific client?
Because i only write the service, and i do't know if the client called unbindService()
correctly,so i have this question..
Activity
that disconnected from theService
instead? There's anonDestroy()
method for activities, oronPause()
oronStop()
. You might be able to put it there. – Partlet