vani
vani

Reputation: 5

How to start the service again, after application force-stop by user

My application is a GPS tracking, after every 2 mins, the latitude and longitude are stored into database. If user manually stops the application from

settings->manage application->our app --->Force stop

I need to start the app again. Is it possible?. Google play service starts again ,if we force stop the application. Why this one is possible?

Upvotes: 0

Views: 9013

Answers (1)

pree
pree

Reputation: 2357

I'm not sure why would you want the service to start if the user explicitly chooses to kill the app. However, you can auto start the service at boot time. Refer link: Android -Starting Service at Boot Time

Upvotes: 5

Related Questions