I am building an application where I need a service which will never stop like android system services. I can make my service restarted by system using start_not_sticky but there is no guarantee that my service will never stop. Does anyone help regrading this issue.
Asked
Active
Viewed 1,145 times
1
-
try this http://stackoverflow.com/questions/6391902/how-to-start-an-application-on-startup-in-android – Nikunj Patel Sep 20 '11 at 04:59
1 Answers
0
Try running your service as Remote service. This runs as an independent application.
Also, use handlers to schedule the part of the service which needs to be run at regular intervals.

Vinay
- 2,395
- 3
- 30
- 35
-
what do you mean by remote service. I use timer task and handler to handle my long run task but its not working – Farhana Haque Oct 04 '11 at 03:33