What is the best way for calling webservices or Restful api at fixed interval of time in android using asyncTask or Volley? Currently I'm using timertask to handle my restful api call at fixed interval.
Asked
Active
Viewed 565 times
0
-
`Timertask` is best option for that. – Nigam Patro Apr 25 '16 at 06:33
-
1http://stackoverflow.com/questions/6531950/how-to-execute-async-task-repeatedly-after-fixed-time-intervals – sasikumar Apr 25 '16 at 06:33
-
webservices or Restful api calling using `TimerTask` is best when app is open. Need to call api in background use `IntentService` and restart this service using `AlarmManager` – Ankita Shah Apr 25 '16 at 06:37