Reputation: 1566
Is there any way to start service after user has manually stopped application using
Settings -> application -> manage application -> our app -> Force stop.
I want to restart my application after force close.
Is there any way to do the same?
Upvotes: 13
Views: 24086
Reputation: 5542
You can't do this by starting two services because force stop will close all of your services related to the particular app which you are force stopping. So start the service when user opens the app again.
Upvotes: 4
Reputation: 2461
No, a service if Force Stopped can not be restarted automatically.
For more assistance you can go through this article:
http://www.androidguys.com/2009/09/09/diamonds-are-forever-services-are-not/
Upvotes: 0