android - onServiceDisconnected() not called after calling Service stopSelf() -
i have activity in start , bind download service.
when calling stopself() in service, onservicedisconnected() in activity not called.
i expect called, since if service stopped, bound activities should unbound.
what missing?
according official document, onservicedisconnected() called if service crashed or killed. link http://developer.android.com/reference/android/content/serviceconnection.html
called when connection service has been lost. typically happens when process hosting service has crashed or been killed. not remove serviceconnection -- binding service remain active, , receive call onserviceconnected(componentname, ibinder) when service next running.
Comments
Post a Comment