How to make http calls in the background using a timer?

I am using Timer Class to do background jobs. My application works, for example, has two activities and one class. I'm currently making HTTO calls in action, but I don't want to do this in activity - (he already does a lot of the task) - so I thought of a separate class for HTTP calls. Is it possible to start the timer without creating any action. How?

0
source share

Source: https://habr.com/ru/post/986551/


All Articles