How do I run an AsyncTask
at regular interval of 2 mins sleep for 10 times in the background service?
As VM stops my service at any time, my AsyncTask
is also getting closed.
I have tried ScheduledThreadPoolExecutor
, Timer
, TimerTask
all gets stopped once Service
gets stopped.
Is there a good option start with?
Any help is appreciated.
See Question&Answers more detail:os