官方解释如下:
Called when new clients have connected to the service, after it had previously been notified that all
had disconnected in its onUnbind. This will only be called if the implementation of onUnbind was overridden
to return true.
Service中onRebind方法被调用的两个必要条件
(1)服务中onUnBind方法返回值为true
(2)服务对象被解绑后没有被销毁,之后再次被绑定
模拟调用流程:
- 先启动服务(onCreate, onStartCommand);
03-08 16:46:06.992 24411-24411/com<