Hi, I have been playing around with trying to restart a service that was killed while it had started. There are some questions that I can't seem to answer by searching in the API documentation.
- Is the re-delivery of the Intent guaranteed? - Are there any timings available for the scheduler that re-delivers this intent? (do I wait seconds, minutes, hours, ....) - Is this behaviour affected by the user (me) clicking the "OK" button on the forced close pop-up? (ideally it would have to work without user intervention - so no-one closing the pop-up) - Is this behaviour affected by me running the Service attached to eclipse in debug mode (i.e. I have to manually resume the debugger as it catches the exception)? - I packaged the Service with an Activity that can control it (start / stop it) .. is the strategy still supposed to work when it is only the Service that is killed and the Activity is still running? I also tried to add an UncaughtExceptionHandler, report what is happening and then package the caught Throwable in a RuntimeException and rethrow it but this way the Service is never restarted. For the other situations I get some very intermittent results and more often then not - the service is not restarted while stopSelf() is definately not called. Cheers, Lieuwe -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en

