简体   繁体   中英

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?

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.

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/

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM