今天突发奇想,想知道:Android中,A bindService B之后,如果 A 或者 B 被 kill 掉了会怎么样呢?
1. kill A,毫无疑问应该是:
- B will not be stopped.
2. kill B,那么会是怎么样呢?
- A will receive onServiceDisconnected call back.
- And A will reconnect B ?
- or A will re-bindService B ?
- or A will receive onServiceConnected B, if B is restarted ? 经过测试,这才是正确的
时间: 2024-10-11 14:16:33