title: Detect a "Scheduling restart of crashed service" in Android
body: <p>Is there a way to detect when my Android service restarts due to a crash?
  Could the service itself know about this after it was restarted? Or can the client applications get this information?</p>
  
  <p>I tried to use the START_FLAG_REDELIVERY flag in the service but Im not sure how it works.</p>