What does it mean to leak a service connection?

后端 未结 3 1632
情话喂你
情话喂你 2021-02-05 07:03

I am writing a service for my Android app and I am trying to understand how the binding mechanism works. If I bind my service in the onCreate of an activity but I don\'t unbind

3条回答
  •  庸人自扰
    2021-02-05 07:46

    The services are still running even after the activity gets closed. So you need to unbind the resource in onStop or onDestroy.

提交回复
热议问题