What to do if OS has killed an IntentService?

Viewed 822

Let's say we have an implementation of IntentService, then we start it from Activity and then add several other Intents in a queue to IntentService for processing. So now we have first Intent under processing and the rest of Intents in a queue. Now let's imagine the OS kills our Application process because of understandable reason. The questions are:

  1. How to restart the IntentService?

  2. How to restore the queue?

Well, I know there is always a Service where you can override it's onStartCommand() and tell a Service what to do. But I need an IntentService because of its queue model.

1 Answers
Related