i'm writing some kind of application that will send http requests to server. My app will send requests with some interval by timer. for example, i need to send 1 type of requests with time interval 2 seconds, 2nd type of requests - 10 seconds and so on. i understand that it is better to have one scheduler that will push my requests. but the question is how can i send requests and process responses without freezing ui?
p.s. right now i have class MyAdapter, which encapsulates all work with requests and responses, and class MyScheduler, which sends requests by timer.