When does ServiceConnection.onServiceDisconnected() get called?

后端 未结 1 1107
陌清茗
陌清茗 2021-01-01 10:45

I\'m messing with Android services, and I have found that ServiceConnection.onServiceConnected() gets called fairly predictably when I bind to a service.

<
1条回答
  •  猫巷女王i
    2021-01-01 11:12

    It happens upon remote service crash. So, if a service running in a different process than your client fails on some exception, you lose the connection and get the callback.

    0 讨论(0)
提交回复
热议问题