Android service onCreate is called multiple times without calling onDestroy

后端 未结 3 1176
说谎
说谎 2020-12-03 00:07

In my app, I use a service to communicate with our server. The Service spawns several message queue threads to deal with tasks with different priorities.

This model

3条回答
  •  既然无缘
    2020-12-03 00:44

    I had exactly the same problem when I was dealing with a bluetooth service (the problem occurred during the development). When I disconnected my device and killed the ADB it didn't happen again and onCreate was called only once. I assume it is some bug because it happens from time to time. But maybe you have a slightly different problem...

提交回复
热议问题