I have developed a simple background service, which tries to prove self resistance when app is killed. For this purpose I return in onStartCommand - START_STICKY - obvious !
When I'm testing killing service's process either:
- from Application Settings -> Force Stop
- or under Eclipse DDMS perspective Stop Process...
I noticed that in the 1st scenario the service is never restarted. On the other hand in the 2nd scenario the service is re-created and onCreate method is called...
Why it is like that? Any differences in killing processes by these two approaches?