|Modifier and Type||Method and Description|
Called when a connection to the Service has been established, with the
Called when a connection to the Service has been lost.
void onServiceConnected(ComponentName name, IBinder service)
IBinderof the communication channel to the Service.
name- The concrete component name of the service that has been connected.
service- The IBinder of the Service's communication channel, which you can now make calls on.
void onServiceDisconnected(ComponentName name)
onServiceConnected(android.content.ComponentName, android.os.IBinder)when the Service is next running.
name- The concrete component name of the service whose connection has been lost.