public abstract void onServiceDisconnected (ComponentName name)
Called when a connection to the Service has been lost. This typically happens when the process hosting the service has crashed or been killed. This does not remove the ServiceConnection
itself -- this binding to the service will remain active, and you will receive a call to
IBinder) when the Service is next running.
|name||The concrete component name of the service whose connection has been lost.|
尤其是This typically happens when the process hosting the service has crashed or been killed.
如果要严重的话，请使用adb shell kill pid 命令kill service来测试。