Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Start service after force stop

Tags:

android

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?

like image 217
unflagged.destination Avatar asked Oct 01 '12 11:10

unflagged.destination


1 Answers

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.

like image 87
Suhail Mehta Avatar answered Sep 20 '22 16:09

Suhail Mehta