当前位置: 代码迷 >> Android >> Service中的onRebind()步骤到底什么时候被调用
  详细解决方案

Service中的onRebind()步骤到底什么时候被调用

热度:60   发布时间:2016-05-01 13:02:09.0
Service中的onRebind()方法到底什么时候被调用!
Service中的onRebind()方法到底什么时候被调用!

我看文档了,但说的不清楚,

------解决方案--------------------
onRebind(Intent intent) 
Called when new clients have connected to the service, after it had previously been notified that all had disconnected in its onUnbind(Intent).
文档说的很清楚啊,,在service和旧的client之间的所有捆绑联系在onUnbind里面全都结束之后,如果有一个新的client用bind连接上service,就会启动onRebind();
------解决方案--------------------
当 有进程 调用 bindService的时候 就会触发 你的service的onBind事件吧.
个人愚见
------解决方案--------------------
当已经bind过后,再次bind就会调用ReBind(),怎么会测不出来。。。
------解决方案--------------------
探讨
onRebind(Intent intent)
Called when new clients have connected to the service, after it had previously been notified that all had disconnected in its onUnbind(Intent).
文档说的很清楚啊,,在service和旧的client之间……
  相关解决方案