unflagged.destination
unflagged.destination

Reputation: 1566

Start service after force stop

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

Answers (2)

Suhail Mehta
Suhail Mehta

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

kittu88
kittu88

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

Related Questions