“Scheduling restart of crashed service”, but no call to onStart() follows

后端 未结 1 1524
伪装坚强ぢ
伪装坚强ぢ 2021-01-18 09:47

In the 1.6 API, is there a way to ensure that the onStart() method of a Service is called after the service is killed due to memory pressure? From the logs, it seems that th

相关标签:
1条回答
  • 2021-01-18 10:29

    As revealed by Chistopher's comment above, even though the log purports to be "Scheduling restart of crashed service", this does not actually mean that the onStart() method will be called. However, onCreate() will indeed be called, and your application can call onStart() from there.

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