How to prevent "Scheduling restart of crashed service"?
<p>I have a service running on the background. But sometimes I find the logcat says "Scheduling restart of crashed service". I just want to know what cause that happens? I think there is no error for my code. And also I find the service actually not restart. At least for onStart() function not works. So does anybody know what cause it and is there any way to prevent this happen? And if happens, what functions will be ran if restart?</p>

<p>Thanks</p>
