onServiceDisconnected. Called when a connection to the Service has been lost. This typically happens when the process hosting the service has crashed or been killed.
What is bound service in Android?
A bound service is the server in a client-server interface. It allows components (such as activities) to bind to the service, send requests, receive responses, and perform interprocess communication (IPC).
How do you unBind an Android service?
In order to unBind() from a Bound Service, a calling simply calls unBindService( mServiceConnection ). The system will then call onUnbind() on the Bound Service itself. If there are no more bound clients, then the system will call onDestroy() on the Bound Service, unless it is in the Started State.